public class CommURI extends 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 |
getParity()
The parity associated with the port
|
String |
getPort()
The COM port or device node associated with this port
|
int |
getStopBits()
The number of stop bits associated with the port
|
int |
getTimeout()
The timeout associated with the port
|
static CommURI |
parseString(String uri)
Converts a String of the CommURI form to a CommURI Object
|
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 String getPort()
String
representing the portpublic int getBaudRate()
public int getDataBits()
public int getStopBits()
public int getParity()
public int getTimeout()
public static CommURI parseString(String uri) throws URISyntaxException
uri
- the String
representing the CommURIURISyntaxException
Copyright © 2013. All Rights Reserved.