Class RemoteControlWriter

    • Field Detail

      • BLOCK_CMDOK

        public static final byte BLOCK_CMDOK
        Block identifier to confirm successful command execution.
        See Also:
        Constant Field Values
      • BLOCK_CMDDUMP

        public static final byte BLOCK_CMDDUMP
        Block identifier for dump command
        See Also:
        Constant Field Values
    • Constructor Detail

      • RemoteControlWriter

        public RemoteControlWriter​(java.io.OutputStream output)
                            throws java.io.IOException
        Creates a new writer based on the given output stream.
        Parameters:
        output - stream to write commands to
        Throws:
        java.io.IOException - if the header can't be written
    • Method Detail

      • sendCmdOk

        public void sendCmdOk()
                       throws java.io.IOException
        Sends a confirmation that a commands has been successfully executed and the response is completed.
        Throws:
        java.io.IOException - in case of problems with the remote connection
      • visitDumpCommand

        public void visitDumpCommand​(boolean dump,
                                     boolean reset)
                              throws java.io.IOException
        Description copied from interface: IRemoteCommandVisitor
        Requests a execution data dump with an optional reset.
        Specified by:
        visitDumpCommand in interface IRemoteCommandVisitor
        Parameters:
        dump - true if the dump should be executed
        reset - true if the reset should be executed
        Throws:
        java.io.IOException - in case of problems with the remote connection