类 OutputLogger.OutputPrintStream

所有已实现的接口:
Closeable, Flushable, Appendable, AutoCloseable
封闭类:
OutputLogger

public static class OutputLogger.OutputPrintStream extends PrintStream
A print stream class to capture all data from stdout and stderr.
版本:
$Revision: 4716 $
作者:
fracpete (fracpete at waikato dot ac dot nz)
  • 构造器详细资料

    • OutputPrintStream

      public OutputPrintStream(OutputLogger owner, PrintStream stream) throws Exception
      Default constructor.
      参数:
      owner - the owning logger
      stream - the stream
      抛出:
      Exception - if something goes wrong
  • 方法详细资料

    • flush

      public void flush()
      ignored.
      指定者:
      flush 在接口中 Flushable
      覆盖:
      flush 在类中 PrintStream
    • print

      public void print(int x)
      prints the given int to the streams.
      覆盖:
      print 在类中 PrintStream
      参数:
      x - the object to print
    • print

      public void print(boolean x)
      prints the given boolean to the streams.
      覆盖:
      print 在类中 PrintStream
      参数:
      x - the object to print
    • print

      public void print(String x)
      prints the given string to the streams.
      覆盖:
      print 在类中 PrintStream
      参数:
      x - the object to print
    • print

      public void print(Object x)
      prints the given object to the streams.
      覆盖:
      print 在类中 PrintStream
      参数:
      x - the object to print
    • println

      public void println()
      prints a new line to the streams.
      覆盖:
      println 在类中 PrintStream
    • println

      public void println(int x)
      prints the given int to the streams.
      覆盖:
      println 在类中 PrintStream
      参数:
      x - the object to print
    • println

      public void println(boolean x)
      prints the given boolean to the streams.
      覆盖:
      println 在类中 PrintStream
      参数:
      x - the object to print
    • println

      public void println(String x)
      prints the given string to the streams.
      覆盖:
      println 在类中 PrintStream
      参数:
      x - the object to print
    • println

      public void println(Object x)
      prints the given object to the streams (for Throwables we print the stack trace).
      覆盖:
      println 在类中 PrintStream
      参数:
      x - the object to print