Class FileOutputChannel

java.lang.Object
com.ibm.jvm.dtfjview.FileOutputChannel
All Implemented Interfaces:
IOutputChannel

public class FileOutputChannel extends Object implements IOutputChannel
  • Constructor Details

    • FileOutputChannel

      public FileOutputChannel(FileWriter f, File file)
  • Method Details

    • print

      public void print(String outputString)
      Description copied from interface: IOutputChannel
      Sends text to channel
      Specified by:
      print in interface IOutputChannel
      Parameters:
      outputString - text to send
    • printPrompt

      public void printPrompt(String prompt)
      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 interface IOutputChannel
      Parameters:
      prompt - prompt to display.
    • println

      public void println(String outputString)
      Description copied from interface: IOutputChannel
      Sends text to the channel with an appended \n
      Specified by:
      println in interface IOutputChannel
      Parameters:
      outputString - text to send
    • error

      public void error(String outputString)
    • error

      public void error(String msg, Exception e)
    • printInput

      public void printInput(long timestamp, String prompt, String outputString)
    • 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 interface IOutputChannel
    • 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 interface IOutputChannel