Class DataSizeCommand

    • Constructor Detail

      • DataSizeCommand

        public DataSizeCommand​(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.SET_DATASIZE (client or server) IllegalArgumentException if bytes[2] is not a valid RFC 2217 data size value
      • DataSizeCommand

        public DataSizeCommand​(boolean client,
                               int dataSize)
        Encoding constructor.
        Parameters:
        dataSize - data size value
        client - true for the client-to-server command, false for the server-to-client command IllegalArgumentException if dataSize is not a valid RFC 2217 data size value