Interface HeaderPrintWriter

All Known Implementing Classes:
BasicHeaderPrintWriter

public interface HeaderPrintWriter
A HeaderPrintWriter is like a PrintWriter with support for including a header in the output. It is expected users will use HeaderPrintWriters to prepend headings to trace and log messages.
  • Method Details

    • printlnWithHeader

      void printlnWithHeader(String message)
      Puts out some setup info for the current write and the write(s) that will be put out next. It ends with a \n\r.

      All other writes to the stream use the PrintStream interface.

    • getHeader

      Return the header for the stream.
    • getPrintWriter

      PrintWriter getPrintWriter()
      Gets a PrintWriter object for writing to this HeaderPrintWriter. Users may use the HeaderPrintWriter to access methods not included in this interface or to invoke methods or constructors which require a PrintWriter. Interleaving calls to a printWriter and its associated HeaderPrintWriter is not supported.
    • getName

      String getName()
      Gets the name of the wrapped writer or stream
    • print

      void print(String message)
      See Also:
    • println

      void println(String message)
      See Also:
    • println

      void println(Object message)
      See Also:
    • flush

      void flush()
      See Also: