public class SerialPortBuilder extends Object
Constructor and Description |
---|
SerialPortBuilder()
Create a new SerialPortBuilder.
|
Modifier and Type | Method and Description |
---|---|
SerialPort |
build() |
SerialPortBuilder |
setBaudRate(SerialPort.BaudRate baudRate) |
SerialPortBuilder |
setControlFlags(int controlFlags) |
SerialPortBuilder |
setDataBits(SerialPort.DataBits dataBits) |
SerialPortBuilder |
setFlowControl(SerialPort.FlowControl flowControl) |
SerialPortBuilder |
setParity(SerialPort.Parity parity) |
SerialPortBuilder |
setPort(String portName) |
SerialPortBuilder |
setStopBits(SerialPort.StopBits stopBits) |
public SerialPortBuilder()
public SerialPortBuilder setPort(String portName)
public SerialPortBuilder setBaudRate(SerialPort.BaudRate baudRate)
public SerialPortBuilder setDataBits(SerialPort.DataBits dataBits)
public SerialPortBuilder setFlowControl(SerialPort.FlowControl flowControl)
public SerialPortBuilder setParity(SerialPort.Parity parity)
public SerialPortBuilder setStopBits(SerialPort.StopBits stopBits)
public SerialPortBuilder setControlFlags(int controlFlags)
public SerialPort build() throws NoSuchPortException, NotASerialPortException, IOException
Copyright © 2019. All rights reserved.