public class LoopbackEventTest extends Object
LoopbackEventTest class.
Modifier and Type | Class and Description |
---|---|
static class |
LoopbackEventTest.SerialEventHandler |
Constructor and Description |
---|
LoopbackEventTest() |
Modifier and Type | Method and Description |
---|---|
void |
addDataAvailableEventHandler(gnu.io.SerialPortEventListener eventHandler)
Register event handler for data available event
|
void |
connect(String portName)
connect
|
void |
disconnect()
Disconnect the serial port
|
InputStream |
getSerialInputStream()
Get the serial port input stream
|
OutputStream |
getSerialOutputStream()
Get the serial port output stream
|
public void connect(String portName) throws IOException
connect
portName
- a String
object.IOException
- if any.public InputStream getSerialInputStream()
public OutputStream getSerialOutputStream()
public void addDataAvailableEventHandler(gnu.io.SerialPortEventListener eventHandler)
eventHandler
- Event handlerpublic void disconnect()
Copyright © 2015. All Rights Reserved.