public class SerialPortImpl extends Object implements SerialPortInterface
| Constructor and Description |
|---|
SerialPortImpl(String port)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEventListener(SerialPortListener dataListener)
Add a listener on the serial port.
|
void |
close()
Close the connection.
|
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
public SerialPortImpl(String port)
port - portpublic OutputStream getOutputStream()
getOutputStream in interface SerialPortInterfacepublic InputStream getInputStream()
getInputStream in interface SerialPortInterfacepublic void addEventListener(SerialPortListener dataListener)
addEventListener in interface SerialPortInterfacedataListener - a listenerpublic void close()
close in interface SerialPortInterfaceCopyright © 2018. All rights reserved.