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 Type
    Method
    Description
    void
    Instructs this channel to close and free any resources.
    void
    Causes the channel to flush any buffered text.
    void
    print(String outputString)
    Sends text to channel
    void
    println(String outputString)
    Sends text to the channel with an appended \n
    void
    Sets the prompt which should be displayed when an interactive session is running.
  • Method Details

    • print

      void print(String outputString)
      Sends text to channel
      Parameters:
      outputString - text to send
    • printPrompt

      void printPrompt(String prompt)
      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

      void println(String outputString)
      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.