public static class SerialChannel.Builder extends Object
| Constructor and Description |
|---|
Builder(String port,
int speed) |
Builder(String port,
SerialChannel.Configuration configuration) |
Builder(String port,
SerialChannel.Speed speed) |
| Modifier and Type | Method and Description |
|---|---|
SerialChannel |
get() |
int |
getBytesPerSecond() |
String |
getPort() |
SerialChannel.Speed |
getSpeed() |
boolean |
isBlock() |
SerialChannel.Builder |
setBlocking(boolean block) |
void |
setConfiguration(SerialChannel.Configuration configuration) |
SerialChannel.Builder |
setDataBits(SerialChannel.DataBits dataBits) |
SerialChannel.Builder |
setFlowControl(SerialChannel.FlowControl flowControl) |
SerialChannel.Builder |
setParity(SerialChannel.Parity parity) |
SerialChannel.Builder |
setPort(String port)
Sets the port.
|
SerialChannel.Builder |
setReplaceError(boolean replace) |
SerialChannel.Builder |
setSpeed(SerialChannel.Speed speed) |
SerialChannel.Builder |
setStopBits(SerialChannel.StopBits stopBits) |
public Builder(String port, int speed)
public Builder(String port, SerialChannel.Speed speed)
public Builder(String port, SerialChannel.Configuration configuration)
public void setConfiguration(SerialChannel.Configuration configuration)
public SerialChannel get() throws IOException
IOExceptionpublic SerialChannel.Builder setPort(String port)
port - public SerialChannel.Builder setBlocking(boolean block)
public String getPort()
public SerialChannel.Speed getSpeed()
public boolean isBlock()
public SerialChannel.Builder setStopBits(SerialChannel.StopBits stopBits)
public SerialChannel.Builder setSpeed(SerialChannel.Speed speed)
public SerialChannel.Builder setParity(SerialChannel.Parity parity)
public SerialChannel.Builder setFlowControl(SerialChannel.FlowControl flowControl)
public SerialChannel.Builder setDataBits(SerialChannel.DataBits dataBits)
public SerialChannel.Builder setReplaceError(boolean replace)
public int getBytesPerSecond()
Copyright © 2015. All rights reserved.