|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.comm.sample.SerialParameters
A class that stores parameters for serial ports.
Constructor Summary | |
SerialParameters()
Default constructer. |
|
SerialParameters(String portName,
int baudRate,
int flowControlIn,
int flowControlOut,
int databits,
int stopbits,
int parity)
Paramaterized constructer. |
Method Summary | |
int |
getBaudRate()
Gets baud rate as an int . |
String |
getBaudRateString()
Gets baud rate as a String . |
int |
getDatabits()
Gets data bits as an int . |
String |
getDatabitsString()
Gets data bits as a String . |
int |
getFlowControlIn()
Gets flow control for reading as an int . |
String |
getFlowControlInString()
Gets flow control for reading as a String . |
int |
getFlowControlOut()
Gets flow control for writing as an int . |
String |
getFlowControlOutString()
Gets flow control for writing as a String . |
int |
getParity()
Gets parity setting as an int . |
String |
getParityString()
Gets parity setting as a String . |
String |
getPortName()
Gets port name. |
int |
getStopbits()
Gets stop bits setting as an int . |
String |
getStopbitsString()
Gets stop bits setting as a String . |
void |
setBaudRate(int baudRate)
Sets baud rate. |
void |
setBaudRate(String baudRate)
Sets baud rate. |
void |
setDatabits(int databits)
Sets data bits. |
void |
setDatabits(String databits)
Sets data bits. |
void |
setFlowControlIn(int flowControlIn)
Sets flow control for reading. |
void |
setFlowControlIn(String flowControlIn)
Sets flow control for reading. |
void |
setFlowControlOut(int flowControlOut)
Sets flow control for writing. |
void |
setFlowControlOut(String flowControlOut)
Sets flow control for writing. |
void |
setParity(int parity)
Sets parity setting. |
void |
setParity(String parity)
Sets parity setting. |
void |
setPortName(String portName)
Sets port name. |
void |
setStopbits(int stopbits)
Sets stop bits. |
void |
setStopbits(String stopbits)
Sets stop bits. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SerialParameters()
public SerialParameters(String portName, int baudRate, int flowControlIn, int flowControlOut, int databits, int stopbits, int parity)
portName
- The name of the port.baudRate
- The baud rate.flowControlIn
- Type of flow control for receiving.flowControlOut
- Type of flow control for sending.databits
- The number of data bits.stopbits
- The number of stop bits.parity
- The type of parity.Method Detail |
public void setPortName(String portName)
portName
- New port name.public String getPortName()
public void setBaudRate(int baudRate)
baudRate
- New baud rate.public void setBaudRate(String baudRate)
baudRate
- New baud rate.public int getBaudRate()
int
.
public String getBaudRateString()
String
.
public void setFlowControlIn(int flowControlIn)
flowControlIn
- New flow control for reading type.public void setFlowControlIn(String flowControlIn)
flowControlIn
- New flow control for reading type.public int getFlowControlIn()
int
.
public String getFlowControlInString()
String
.
public void setFlowControlOut(int flowControlOut)
public void setFlowControlOut(String flowControlOut)
public int getFlowControlOut()
int
.
public String getFlowControlOutString()
String
.
public void setDatabits(int databits)
databits
- New data bits setting.public void setDatabits(String databits)
databits
- New data bits setting.public int getDatabits()
int
.
public String getDatabitsString()
String
.
public void setStopbits(int stopbits)
stopbits
- New stop bits setting.public void setStopbits(String stopbits)
stopbits
- New stop bits setting.public int getStopbits()
int
.
public String getStopbitsString()
String
.
public void setParity(int parity)
parity
- New parity setting.public void setParity(String parity)
parity
- New parity setting.public int getParity()
int
.
public String getParityString()
String
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |