Class StdoutOutputWriter

  • All Implemented Interfaces:
    OutputWriter

    public class StdoutOutputWriter
    extends Object
    implements OutputWriter
    Writer for writing output to stdout.
    • Constructor Detail

      • StdoutOutputWriter

        public StdoutOutputWriter()
    • Method Detail

      • target

        public String target()
        Description copied from interface: OutputWriter
        Returns a String describing the target to which the output is written (primarily for logging purposes).
        Specified by:
        target in interface OutputWriter
        Returns:
        a String describing the target to which the output is written to.
      • write

        public void write​(String output)
        Description copied from interface: OutputWriter
        Writes single piece of information to output target.
        Specified by:
        write in interface OutputWriter
        Parameters:
        output - the output to be written to the output target
      • writeHeader

        public void writeHeader​(String output)
        Description copied from interface: OutputWriter
        Writes the header (if available) to the output target.
        Specified by:
        writeHeader in interface OutputWriter
      • writeNewLine

        public void writeNewLine()
        Description copied from interface: OutputWriter
        Generates a newline (if possible) in the output target.
        Specified by:
        writeNewLine in interface OutputWriter