Class OutputStreamHandler

All Implemented Interfaces:
Closeable, Flushable, AutoCloseable, FlushableCloseable, Protectable
Direct Known Subclasses:
ConsoleHandler, FileHandler

public class OutputStreamHandler extends WriterHandler
An output stream handler which supports any OutputStream, using the specified encoding. If no encoding is specified, the platform default is used.
  • Field Details

  • Constructor Details

    • OutputStreamHandler

      public OutputStreamHandler()
      Construct a new instance with no formatter.
    • OutputStreamHandler

      public OutputStreamHandler(Formatter formatter)
      Construct a new instance.
      Parameters:
      formatter - the formatter to use
    • OutputStreamHandler

      public OutputStreamHandler(OutputStream outputStream, Formatter formatter)
      Construct a new instance.
      Parameters:
      outputStream - the output stream to use
      formatter - the formatter to use
  • Method Details