Class ConsoleOutputChannel
java.lang.Object
com.ibm.jvm.dtfjview.ConsoleOutputChannel
- All Implemented Interfaces:
IOutputChannel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Instructs this channel to close and free any resources.void
void
void
flush()
Causes the channel to flush any buffered text.void
Sends text to channelvoid
printInput
(long timestamp, String prompt, String outputString) void
Sends text to the channel with an appended \nvoid
printPrompt
(String prompt) Sets the prompt which should be displayed when an interactive session is running.void
setNoPrint
(boolean b)
-
Constructor Details
-
ConsoleOutputChannel
public ConsoleOutputChannel()
-
-
Method Details
-
print
Description copied from interface:IOutputChannel
Sends text to channel- Specified by:
print
in interfaceIOutputChannel
- Parameters:
outputString
- text to send
-
printPrompt
Description copied from interface:IOutputChannel
Sets the prompt which should be displayed when an interactive session is running. Typically this will display the context number in a multi-context environment.- Specified by:
printPrompt
in interfaceIOutputChannel
- Parameters:
prompt
- prompt to display.
-
println
Description copied from interface:IOutputChannel
Sends text to the channel with an appended \n- Specified by:
println
in interfaceIOutputChannel
- Parameters:
outputString
- text to send
-
error
-
error
-
printInput
-
close
public void close()Description copied from interface:IOutputChannel
Instructs this channel to close and free any resources. Once closed a channel cannot be re-opened.- Specified by:
close
in interfaceIOutputChannel
-
setNoPrint
public void setNoPrint(boolean b) -
flush
public void flush()Description copied from interface:IOutputChannel
Causes the channel to flush any buffered text. Depending upon the channel implementation this may not have any effect.- Specified by:
flush
in interfaceIOutputChannel
-