Class LineStateMaskCommand


  • public class LineStateMaskCommand
    extends ComPortCommand
    RFC 2217 SET-LINESTATE-MASK command.
    See Also:
    RFC 2217
    • Constructor Detail

      • LineStateMaskCommand

        public LineStateMaskCommand​(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_LINESTATE_MASK (client or server)
      • LineStateMaskCommand

        public LineStateMaskCommand​(boolean client,
                                    int lineStateMask)
        Encoding constructor.
        Parameters:
        lineStateMask - line state mask value
        client - true for the client-to-server command, false for the server-to-client command
    • 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
      • getLineStateMask

        public int getLineStateMask()