Class ModemStateMaskCommand


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

      • ModemStateMaskCommand

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

        public ModemStateMaskCommand​(boolean client,
                                     int modemStateMask)
        Encoding constructor.
        Parameters:
        modemStateMask - modem 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
      • getModemStateMask

        public int getModemStateMask()