|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.SocketAddress
org.apache.mina.transport.serial.SerialAddress
public class SerialAddress
An address for a serial port communication.
Nested Class Summary | |
---|---|
static class |
SerialAddress.DataBits
|
static class |
SerialAddress.FlowControl
|
static class |
SerialAddress.Parity
|
static class |
SerialAddress.StopBits
|
Constructor Summary | |
---|---|
SerialAddress(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. |
Method Summary | |
---|---|
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. |
String |
getName()
The name of the device. |
SerialAddress.Parity |
getParity()
The parity check for this communication. |
SerialAddress.StopBits |
getStopBits()
Number of stop bits used. |
String |
toString()
Convert this serial address to a human readable string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SerialAddress(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 usedMethod Detail |
---|
public int getBauds()
public SerialAddress.DataBits getDataBits()
public SerialAddress.FlowControl getFlowControl()
public String getName()
public SerialAddress.Parity getParity()
public SerialAddress.StopBits getStopBits()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |