Interface IOutputChannel
- All Known Subinterfaces:
IOutputManager
- All Known Implementing Classes:
ConsoleOutputChannel
,FileOutputChannel
,Output
,OutputChannelRedirector
public interface IOutputChannel
An output channel provides a mechanism by which text will be displayed
to the user.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Instructs this channel to close and free any resources.void
flush()
Causes the channel to flush any buffered text.void
Sends text to channelvoid
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.
-
Method Details
-
print
-
printPrompt
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.- Parameters:
prompt
- prompt to display.
-
println
Sends text to the channel with an appended \n- Parameters:
outputString
- text to send
-
close
void close()Instructs this channel to close and free any resources. Once closed a channel cannot be re-opened. -
flush
void flush()Causes the channel to flush any buffered text. Depending upon the channel implementation this may not have any effect.
-