public enum SerialFlowControl extends Enum<SerialFlowControl>
| Enum Constant | Description |
|---|---|
CTS |
No flow control.
|
DSR |
No flow control.
|
DTR |
No flow control.
|
None |
No flow control.
|
RTS |
No flow control.
|
XonXoffIn |
No flow control.
|
XonXoffOut |
No flow control.
|
| Modifier and Type | Field | Description |
|---|---|---|
static int |
CTS_FLOW_CONTROL |
Code value for CTS flow control.
|
static String |
CTS_FLOW_CONTROL_ABBREVIATION |
Abbreviation value for CTS flow control.
|
static int |
DSR_FLOW_CONTROL |
Code value for DSR flow control.
|
static String |
DSR_FLOW_CONTROL_ABBREVIATION |
Abbreviation value for DSR flow control.
|
static int |
DTR_FLOW_CONTROL |
Code value for DTR flow control.
|
static String |
DTR_FLOW_CONTROL_ABBREVIATION |
Abbreviation value for DTR flow control.
|
static int |
NO_FLOW_CONTROL |
Code value for no flow control.
|
static String |
NO_FLOW_CONTROL_ABBREVIATION |
Abbreviation value for no flow control.
|
static int |
RTS_FLOW_CONTROL |
Code value for RTS flow control.
|
static String |
RTS_FLOW_CONTROL_ABBREVIATION |
Abbreviation value for RTS flow control.
|
static int |
XONXOFF_IN_FLOW_CONTROL |
Code value for Xon Xoff in flow control.
|
static String |
XONXOFF_IN_FLOW_CONTROL_ABBREVIATION |
Abbreviation value for Xon Xoff in flow control.
|
static int |
XONXOFF_OUT_FLOW_CONTROL |
Code value for Xon Xoff out flow control.
|
static String |
XONXOFF_OUT_FLOW_CONTROL_ABBREVIATION |
Abbreviation value for Xon Xoff out flow control.
|
| Modifier and Type | Method | Description |
|---|---|---|
static Set<SerialFlowControl> |
forAbbreviation(String value) |
Get an enumeration set for an abbreviation value.
|
static SerialFlowControl |
forCode(int code) |
Get an enum instance for a code value.
|
int |
getCode() |
Get the code value.
|
static SerialFlowControl |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static SerialFlowControl[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SerialFlowControl None
public static final SerialFlowControl RTS
public static final SerialFlowControl CTS
public static final SerialFlowControl DSR
public static final SerialFlowControl DTR
public static final SerialFlowControl XonXoffIn
public static final SerialFlowControl XonXoffOut
public static final int NO_FLOW_CONTROL
public static final int RTS_FLOW_CONTROL
public static final int CTS_FLOW_CONTROL
public static final int DSR_FLOW_CONTROL
public static final int DTR_FLOW_CONTROL
public static final int XONXOFF_IN_FLOW_CONTROL
public static final int XONXOFF_OUT_FLOW_CONTROL
public static final String NO_FLOW_CONTROL_ABBREVIATION
public static final String RTS_FLOW_CONTROL_ABBREVIATION
public static final String CTS_FLOW_CONTROL_ABBREVIATION
public static final String DSR_FLOW_CONTROL_ABBREVIATION
public static final String DTR_FLOW_CONTROL_ABBREVIATION
public static final String XONXOFF_IN_FLOW_CONTROL_ABBREVIATION
public static final String XONXOFF_OUT_FLOW_CONTROL_ABBREVIATION
public static SerialFlowControl[] values()
for (SerialFlowControl c : SerialFlowControl.values()) System.out.println(c);
public static SerialFlowControl valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getCode()
public static SerialFlowControl forCode(int code)
code - the codeIllegalArgumentException - if code is not a valid valuepublic static Set<SerialFlowControl> forAbbreviation(String value)
Multiple abbreviations can be provided by using a / delimiter,
for example RTS/CTS or Xon/Xoff.
value - the slash-delimited list of abbreviations to parseIllegalArgumentException - if value is not empty but contains no valid abbreviation