@ProviderType
public class CommURI
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CommURI.Builder
Builder class used as a helper in building the components of a CommURI.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DATABITS_5 |
static int |
DATABITS_6 |
static int |
DATABITS_7 |
static int |
DATABITS_8 |
static int |
FLOWCONTROL_NONE |
static int |
FLOWCONTROL_RTSCTS_IN |
static int |
FLOWCONTROL_RTSCTS_OUT |
static int |
FLOWCONTROL_XONXOFF_IN |
static int |
FLOWCONTROL_XONXOFF_OUT |
static int |
PARITY_EVEN |
static int |
PARITY_MARK |
static int |
PARITY_NONE |
static int |
PARITY_ODD |
static int |
PARITY_SPACE |
static int |
STOPBITS_1 |
static int |
STOPBITS_1_5 |
static int |
STOPBITS_2 |
| Modifier and Type | Method and Description |
|---|---|
int |
getBaudRate()
The baud rate associated with the port
|
int |
getDataBits()
The number of data bits associated with the port
|
int |
getFlowControl()
The flow control associated with the port
|
int |
getOpenTimeout()
The open timeout associated with the port
|
int |
getParity()
The parity associated with the port
|
java.lang.String |
getPort()
The COM port or device node associated with this port
|
int |
getReceiveTimeout()
The receive timeout associated with the port
|
int |
getStopBits()
The number of stop bits associated with the port
|
int |
getTimeout()
Deprecated.
Use
getOpenTimeout() and getReceiveTimeout() instead |
static CommURI |
parseString(java.lang.String uri)
Converts a String of the CommURI form to a CommURI Object
|
java.lang.String |
toString()
The
String representing the CommURI |
public static final int DATABITS_5
public static final int DATABITS_6
public static final int DATABITS_7
public static final int DATABITS_8
public static final int PARITY_EVEN
public static final int PARITY_MARK
public static final int PARITY_NONE
public static final int PARITY_ODD
public static final int PARITY_SPACE
public static final int STOPBITS_1
public static final int STOPBITS_1_5
public static final int STOPBITS_2
public static final int FLOWCONTROL_NONE
public static final int FLOWCONTROL_RTSCTS_IN
public static final int FLOWCONTROL_RTSCTS_OUT
public static final int FLOWCONTROL_XONXOFF_IN
public static final int FLOWCONTROL_XONXOFF_OUT
public java.lang.String getPort()
String representing the portpublic int getBaudRate()
public int getDataBits()
public int getStopBits()
public int getParity()
public int getFlowControl()
@Deprecated public int getTimeout()
getOpenTimeout() and getReceiveTimeout() insteadgetOpenTimeout()public int getOpenTimeout()
public int getReceiveTimeout()
public java.lang.String toString()
String representing the CommURItoString in class java.lang.Objectpublic static CommURI parseString(java.lang.String uri) throws java.net.URISyntaxException
uri - the String representing the CommURIjava.net.URISyntaxException