org.opennms.rxtx.test.internal
Class LoopbackEventTest

java.lang.Object
  extended by org.opennms.rxtx.test.internal.LoopbackEventTest

public class LoopbackEventTest
extends Object

LoopbackEventTest class.

Version:
$Id: $
Author:
ranger

Nested Class Summary
static class LoopbackEventTest.SerialEventHandler
           
 
Constructor Summary
LoopbackEventTest()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoopbackEventTest

public LoopbackEventTest()
Method Detail

connect

public void connect(String portName)
             throws IOException

connect

Parameters:
portName - a String object.
Throws:
IOException - if any.

getSerialInputStream

public InputStream getSerialInputStream()
Get the serial port input stream

Returns:
The serial port input stream

getSerialOutputStream

public OutputStream getSerialOutputStream()
Get the serial port output stream

Returns:
The serial port output stream

addDataAvailableEventHandler

public void addDataAvailableEventHandler(gnu.io.SerialPortEventListener eventHandler)
Register event handler for data available event

Parameters:
eventHandler - Event handler

disconnect

public void disconnect()
Disconnect the serial port



Copyright © 2011. All Rights Reserved.