public class SerialAddress
extends java.net.SocketAddress
| 限定符和类型 | 类和说明 |
|---|---|
static class |
SerialAddress.DataBits |
static class |
SerialAddress.FlowControl |
static class |
SerialAddress.Parity |
static class |
SerialAddress.StopBits |
| 构造器和说明 |
|---|
SerialAddress(java.lang.String name,
int bauds,
SerialAddress.DataBits dataBits,
SerialAddress.StopBits stopBits,
SerialAddress.Parity parity,
SerialAddress.FlowControl flowControl)
Create an address for a serial communication, associating a serial interface and
various serial signal carcteristics.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getBauds()
Bauds rate for the communication.
|
SerialAddress.DataBits |
getDataBits()
Number of data bits for each communicated bytes.
|
SerialAddress.FlowControl |
getFlowControl()
The flow control policie used for this communication.
|
java.lang.String |
getName()
The name of the device.
|
SerialAddress.Parity |
getParity()
The parity check for this communication.
|
SerialAddress.StopBits |
getStopBits()
Number of stop bits used.
|
java.lang.String |
toString()
Convert this serial address to a human readable string.
|
public SerialAddress(java.lang.String name,
int bauds,
SerialAddress.DataBits dataBits,
SerialAddress.StopBits stopBits,
SerialAddress.Parity parity,
SerialAddress.FlowControl flowControl)
name - name of the device, COM1 COM2 for Windows, /dev/ttyS0 for Unixbauds - baud rate for the communicationdataBits - number of data bits per bytesstopBits - number of stop bitsparity - parity usedflowControl - flow control usedpublic int getBauds()
public SerialAddress.DataBits getDataBits()
public SerialAddress.FlowControl getFlowControl()
public java.lang.String getName()
public SerialAddress.Parity getParity()
public SerialAddress.StopBits getStopBits()
public java.lang.String toString()
toString 在类中 java.lang.Object