Class DefaultCommandReader

    • Constructor Detail

      • DefaultCommandReader

        public DefaultCommandReader()
    • Method Detail

      • beforeNextCommand

        protected void beforeNextCommand()
                                  throws java.io.IOException
        Possibly waiting for next command (see nextCommand()) unless the stream is atomically closed (see CommandReader.isClosed() returns true) before this method has returned.
        Throws:
        java.io.IOException - stream error while waiting for notification regarding next test required by forked jvm
      • nextCommand

        protected abstract Command nextCommand()
      • readNextCommand

        public Command readNextCommand()
                                throws java.io.IOException
        Used by single thread in StreamFeeder class.
        Returns:
        the command, or null if closed
        Throws:
        java.io.IOException