@ProviderType
public static class CommURI.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder(java.lang.String port) |
Modifier and Type | Method and Description |
---|---|
CommURI |
build() |
CommURI.Builder |
withBaudRate(int baudRate) |
CommURI.Builder |
withDataBits(int dataBits) |
CommURI.Builder |
withFlowControl(int flowControl) |
CommURI.Builder |
withOpenTimeout(int timeout)
Sets the open timeout associated with the port
|
CommURI.Builder |
withParity(int parity) |
CommURI.Builder |
withReceiveTimeout(int timeout)
Sets the receive timeout associated with the port.
|
CommURI.Builder |
withStopBits(int stopBits) |
CommURI.Builder |
withTimeout(int timeout)
Deprecated.
use
withOpenTimeout(int) and withReceiveTimeout(int) instead |
public CommURI.Builder withBaudRate(int baudRate)
public CommURI.Builder withDataBits(int dataBits)
public CommURI.Builder withStopBits(int stopBits)
public CommURI.Builder withParity(int parity)
public CommURI.Builder withFlowControl(int flowControl)
@Deprecated public CommURI.Builder withTimeout(int timeout)
withOpenTimeout(int)
and withReceiveTimeout(int)
insteadwithOpenTimeout(int)
timeout
- The open timeout in milliseconds.public CommURI.Builder withOpenTimeout(int timeout)
timeout
- The open timeout in milliseconds.public CommURI.Builder withReceiveTimeout(int timeout)
timeout
- The receive timeout in milliseconds.public CommURI build()