Package gnu.io.rfc2217
Class RFC2217
- java.lang.Object
-
- gnu.io.rfc2217.RFC2217
-
public final class RFC2217 extends java.lang.Object
RFC 2217 constants and utility methods.- See Also:
- RFC 2217
-
-
Field Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ComPortCommand
decodeComPortCommand(int[] bytes)
Decode an RFC 2217COM-PORT-OPTION
command.
-
-
-
Field Detail
-
COM_PORT_OPTION
public static final int COM_PORT_OPTION
- See Also:
- Constant Field Values
-
SIGNATURE
public static final int SIGNATURE
- See Also:
- Constant Field Values
-
SET_BAUDRATE
public static final int SET_BAUDRATE
- See Also:
- Constant Field Values
-
SET_DATASIZE
public static final int SET_DATASIZE
- See Also:
- Constant Field Values
-
SET_PARITY
public static final int SET_PARITY
- See Also:
- Constant Field Values
-
SET_STOPSIZE
public static final int SET_STOPSIZE
- See Also:
- Constant Field Values
-
SET_CONTROL
public static final int SET_CONTROL
- See Also:
- Constant Field Values
-
NOTIFY_LINESTATE
public static final int NOTIFY_LINESTATE
- See Also:
- Constant Field Values
-
NOTIFY_MODEMSTATE
public static final int NOTIFY_MODEMSTATE
- See Also:
- Constant Field Values
-
FLOWCONTROL_SUSPEND
public static final int FLOWCONTROL_SUSPEND
- See Also:
- Constant Field Values
-
FLOWCONTROL_RESUME
public static final int FLOWCONTROL_RESUME
- See Also:
- Constant Field Values
-
SET_LINESTATE_MASK
public static final int SET_LINESTATE_MASK
- See Also:
- Constant Field Values
-
SET_MODEMSTATE_MASK
public static final int SET_MODEMSTATE_MASK
- See Also:
- Constant Field Values
-
PURGE_DATA
public static final int PURGE_DATA
- See Also:
- Constant Field Values
-
SERVER_OFFSET
public static final int SERVER_OFFSET
- See Also:
- Constant Field Values
-
DATASIZE_REQUEST
public static final int DATASIZE_REQUEST
- See Also:
- Constant Field Values
-
DATASIZE_5
public static final int DATASIZE_5
- See Also:
- Constant Field Values
-
DATASIZE_6
public static final int DATASIZE_6
- See Also:
- Constant Field Values
-
DATASIZE_7
public static final int DATASIZE_7
- See Also:
- Constant Field Values
-
DATASIZE_8
public static final int DATASIZE_8
- See Also:
- Constant Field Values
-
PARITY_REQUEST
public static final int PARITY_REQUEST
- See Also:
- Constant Field Values
-
PARITY_NONE
public static final int PARITY_NONE
- See Also:
- Constant Field Values
-
PARITY_ODD
public static final int PARITY_ODD
- See Also:
- Constant Field Values
-
PARITY_EVEN
public static final int PARITY_EVEN
- See Also:
- Constant Field Values
-
PARITY_MARK
public static final int PARITY_MARK
- See Also:
- Constant Field Values
-
PARITY_SPACE
public static final int PARITY_SPACE
- See Also:
- Constant Field Values
-
STOPSIZE_REQUEST
public static final int STOPSIZE_REQUEST
- See Also:
- Constant Field Values
-
STOPSIZE_1
public static final int STOPSIZE_1
- See Also:
- Constant Field Values
-
STOPSIZE_2
public static final int STOPSIZE_2
- See Also:
- Constant Field Values
-
STOPSIZE_1_5
public static final int STOPSIZE_1_5
- See Also:
- Constant Field Values
-
CONTROL_OUTBOUND_FLOW_REQUEST
public static final int CONTROL_OUTBOUND_FLOW_REQUEST
- See Also:
- Constant Field Values
-
CONTROL_OUTBOUND_FLOW_NONE
public static final int CONTROL_OUTBOUND_FLOW_NONE
- See Also:
- Constant Field Values
-
CONTROL_OUTBOUND_FLOW_XON_XOFF
public static final int CONTROL_OUTBOUND_FLOW_XON_XOFF
- See Also:
- Constant Field Values
-
CONTROL_OUTBOUND_FLOW_HARDWARE
public static final int CONTROL_OUTBOUND_FLOW_HARDWARE
- See Also:
- Constant Field Values
-
CONTROL_BREAK_REQUEST
public static final int CONTROL_BREAK_REQUEST
- See Also:
- Constant Field Values
-
CONTROL_BREAK_ON
public static final int CONTROL_BREAK_ON
- See Also:
- Constant Field Values
-
CONTROL_BREAK_OFF
public static final int CONTROL_BREAK_OFF
- See Also:
- Constant Field Values
-
CONTROL_DTR_REQUEST
public static final int CONTROL_DTR_REQUEST
- See Also:
- Constant Field Values
-
CONTROL_DTR_ON
public static final int CONTROL_DTR_ON
- See Also:
- Constant Field Values
-
CONTROL_DTR_OFF
public static final int CONTROL_DTR_OFF
- See Also:
- Constant Field Values
-
CONTROL_RTS_REQUEST
public static final int CONTROL_RTS_REQUEST
- See Also:
- Constant Field Values
-
CONTROL_RTS_ON
public static final int CONTROL_RTS_ON
- See Also:
- Constant Field Values
-
CONTROL_RTS_OFF
public static final int CONTROL_RTS_OFF
- See Also:
- Constant Field Values
-
CONTROL_INBOUND_FLOW_REQUEST
public static final int CONTROL_INBOUND_FLOW_REQUEST
- See Also:
- Constant Field Values
-
CONTROL_INBOUND_FLOW_NONE
public static final int CONTROL_INBOUND_FLOW_NONE
- See Also:
- Constant Field Values
-
CONTROL_INBOUND_FLOW_XON_XOFF
public static final int CONTROL_INBOUND_FLOW_XON_XOFF
- See Also:
- Constant Field Values
-
CONTROL_INBOUND_FLOW_HARDWARE
public static final int CONTROL_INBOUND_FLOW_HARDWARE
- See Also:
- Constant Field Values
-
CONTROL_OUTBOUND_FLOW_DCD
public static final int CONTROL_OUTBOUND_FLOW_DCD
- See Also:
- Constant Field Values
-
CONTROL_INBOUND_FLOW_DTR
public static final int CONTROL_INBOUND_FLOW_DTR
- See Also:
- Constant Field Values
-
CONTROL_OUTBOUND_FLOW_DSR
public static final int CONTROL_OUTBOUND_FLOW_DSR
- See Also:
- Constant Field Values
-
LINESTATE_TIME_OUT
public static final int LINESTATE_TIME_OUT
- See Also:
- Constant Field Values
-
LINESTATE_TRANSFER_SHIFT_REGISTER_EMPTY
public static final int LINESTATE_TRANSFER_SHIFT_REGISTER_EMPTY
- See Also:
- Constant Field Values
-
LINESTATE_TRANSFER_HOLDING_REGISTER_EMPTY
public static final int LINESTATE_TRANSFER_HOLDING_REGISTER_EMPTY
- See Also:
- Constant Field Values
-
LINESTATE_BREAK_DETECT
public static final int LINESTATE_BREAK_DETECT
- See Also:
- Constant Field Values
-
LINESTATE_FRAMING_ERROR
public static final int LINESTATE_FRAMING_ERROR
- See Also:
- Constant Field Values
-
LINESTATE_PARITY_ERROR
public static final int LINESTATE_PARITY_ERROR
- See Also:
- Constant Field Values
-
LINESTATE_OVERRUN_ERROR
public static final int LINESTATE_OVERRUN_ERROR
- See Also:
- Constant Field Values
-
LINESTATE_DATA_READY
public static final int LINESTATE_DATA_READY
- See Also:
- Constant Field Values
-
MODEMSTATE_CARRIER_DETECT
public static final int MODEMSTATE_CARRIER_DETECT
- See Also:
- Constant Field Values
-
MODEMSTATE_RING_INDICATOR
public static final int MODEMSTATE_RING_INDICATOR
- See Also:
- Constant Field Values
-
MODEMSTATE_DSR
public static final int MODEMSTATE_DSR
- See Also:
- Constant Field Values
-
MODEMSTATE_CTS
public static final int MODEMSTATE_CTS
- See Also:
- Constant Field Values
-
MODEMSTATE_DELTA_CARRIER_DETECT
public static final int MODEMSTATE_DELTA_CARRIER_DETECT
- See Also:
- Constant Field Values
-
MODEMSTATE_TRAILING_EDGE_RING_DETECTOR
public static final int MODEMSTATE_TRAILING_EDGE_RING_DETECTOR
- See Also:
- Constant Field Values
-
MODEMSTATE_DELTA_DSR
public static final int MODEMSTATE_DELTA_DSR
- See Also:
- Constant Field Values
-
MODEMSTATE_DELTA_CTS
public static final int MODEMSTATE_DELTA_CTS
- See Also:
- Constant Field Values
-
PURGE_DATA_RECEIVE_DATA_BUFFER
public static final int PURGE_DATA_RECEIVE_DATA_BUFFER
- See Also:
- Constant Field Values
-
PURGE_DATA_TRANSMIT_DATA_BUFFER
public static final int PURGE_DATA_TRANSMIT_DATA_BUFFER
- See Also:
- Constant Field Values
-
PURGE_DATA_BOTH_DATA_BUFFERS
public static final int PURGE_DATA_BOTH_DATA_BUFFERS
- See Also:
- Constant Field Values
-
-
Method Detail
-
decodeComPortCommand
public static ComPortCommand decodeComPortCommand(int[] bytes)
Decode an RFC 2217COM-PORT-OPTION
command. IllegalArgumentException if the bytes are not a valid encoded RFC 2217COM_PORT_OPTION
-
-