Class OutputController

java.lang.Object
net.sourceforge.jnlp.util.logging.OutputController
All Implemented Interfaces:
BasicOutputController

public class OutputController extends Object implements BasicOutputController
OutputController class (thread) must NOT call JNLPRuntime.getConfiguration()
  • Constructor Details

    • OutputController

      public OutputController(OutputStream out, OutputStream err)
      for testing purposes the logger with custom streams can be created otherwise only getLogger()'s singleton can be called.
  • Method Details

    • flush

      public void flush()
    • getLogger

      public static OutputController getLogger()
      This should be the only legal way to get logger for ITW
      Returns:
      logging singleton
    • startConsumer

      public void startConsumer()
    • setInOutErrController

      public void setInOutErrController(StdInOutErrController inOutErrController)
      Some tests may require set the output/error stream and check the output. This is the gate for it.
    • log

      public void log(MessageWithHeader l)
      Specified by:
      log in interface BasicOutputController
    • printOutLn

      public void printOutLn(String e)
    • readLine

      public String readLine() throws IOException
      Throws:
      IOException