Class StreamCommandProcessor

  • All Implemented Interfaces:
    CommandProcessor, Component, HasSchedule

    public class StreamCommandProcessor
    extends BaseCommandProcessor
    original author unknown

    in this release made the process a thread so it can be shared with other command processors like the SocketCommandProcessor created innerclass CommandTokenizer so it could handle quotes and spaces within quotes

    • Field Detail

      • COMMAND_NOT_FOUND

        public static final java.lang.String COMMAND_NOT_FOUND
        See Also:
        Constant Field Values
      • SERVER_EXIT_COMMAND

        public static final java.lang.String SERVER_EXIT_COMMAND
        See Also:
        Constant Field Values
      • reader

        private java.io.BufferedReader reader
      • writer

        private java.io.BufferedWriter writer
    • Constructor Detail

      • StreamCommandProcessor

        public StreamCommandProcessor()
    • Method Detail

      • getReader

        public java.io.BufferedReader getReader()
      • getWriter

        public java.io.BufferedWriter getWriter()
      • readLine

        public java.lang.String readLine()
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        public void write​(java.lang.String text)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • writeLine

        public void writeLine​(java.lang.String line)
                       throws java.io.IOException
        Throws:
        java.io.IOException