Class DefaultOutputHandler

  • All Implemented Interfaces:
    OutputHandler

    @Named
    public class DefaultOutputHandler
    extends java.lang.Object
    implements OutputHandler
    Default output handler, that uses the console.
    Author:
    Brett Porter
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void write​(java.lang.String line)
      Write a single line of input, excluding the newline at the end.
      void writeLine​(java.lang.String line)
      Write a single line of input, including the newline at the end.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultOutputHandler

        public DefaultOutputHandler()
    • Method Detail

      • write

        public void write​(java.lang.String line)
        Description copied from interface: OutputHandler
        Write a single line of input, excluding the newline at the end.
        Specified by:
        write in interface OutputHandler
        Parameters:
        line - the line
      • writeLine

        public void writeLine​(java.lang.String line)
        Description copied from interface: OutputHandler
        Write a single line of input, including the newline at the end.
        Specified by:
        writeLine in interface OutputHandler
        Parameters:
        line - the line