public class SerialPortRegistry extends Object
| 构造器和说明 |
|---|
SerialPortRegistry() |
| 限定符和类型 | 方法和说明 |
|---|---|
<T extends SerialPort> |
getPortCreatorForPortName(String portName,
Class<T> expectedClass)
Gets the best applicable
SerialPortCreator for the given portName |
protected void |
registerDefaultSerialPortCreators()
Registers the
RxTxPortCreator and the RFC2217PortCreator. |
void |
registerSerialPortCreator(SerialPortCreator<? extends SerialPort> creator)
Registers a
SerialPortCreator. |
protected void registerDefaultSerialPortCreators()
RxTxPortCreator and the RFC2217PortCreator.public void registerSerialPortCreator(SerialPortCreator<? extends SerialPort> creator)
SerialPortCreator.creator - public <T extends SerialPort> SerialPortCreator<T> getPortCreatorForPortName(String portName, Class<T> expectedClass)
SerialPortCreator for the given portNameportName - The port's name.SerialPortCreator or null if none could be found.Copyright © 2020. All rights reserved.