Class PurgeDataCommand

    • Constructor Detail

      • PurgeDataCommand

        public PurgeDataCommand​(int[] bytes)
        Decoding constructor.
        Parameters:
        bytes - encoded option starting with the COM-PORT-OPTION byte NullPointerException if bytes is null IllegalArgumentException if bytes has length != 3 IllegalArgumentException if bytes[0] is not RFC2217.COM_PORT_OPTION IllegalArgumentException if bytes[1] is not RFC2217.PURGE_DATA (client or server) IllegalArgumentException if bytes[2] is not a valid RFC 2217 purge data value
      • PurgeDataCommand

        public PurgeDataCommand​(boolean client,
                                int purgeData)
        Encoding constructor.
        Parameters:
        purgeData - purge data value
        client - true for the client-to-server command, false for the server-to-client command IllegalArgumentException if purgeData is not a valid RFC 2217 purge data value
    • Method Detail

      • toString

        public java.lang.String toString()
        Description copied from class: ComPortCommand
        Get the human-readable description of this option.
        Specified by:
        toString in class ComPortCommand
      • isPurgeReceiveDataBuffer

        public boolean isPurgeReceiveDataBuffer()
      • isPurgeTransmitDataBuffer

        public boolean isPurgeTransmitDataBuffer()