Class Command

  • All Implemented Interfaces:
    Runnable

    public abstract class Command
    extends Object
    implements Runnable
    A generic command of the Watset command-line interface.
    • Constructor Detail

      • Command

        public Command()
    • Method Detail

      • newInputStream

        public Stream<String> newInputStream()
                                      throws IOException
        Provide a stream to the input file.
        Returns:
        the lines from the file as a Stream
        Throws:
        IOException - if an I/O error occurs
      • newOutputWriter

        public BufferedWriter newOutputWriter()
                                       throws IOException
        Provide a writer to the output file.
        Returns:
        a new buffered writer to write output
        Throws:
        IOException - if an I/O error occurs