io
Class AbstractSerialDriver.Available

java.lang.Object
  extended by io.AbstractSerialDriver.Available
All Implemented Interfaces:
gnu.io.SerialPortEventListener, EventListener
Enclosing class:
AbstractSerialDriver

protected class AbstractSerialDriver.Available
extends Object
implements gnu.io.SerialPortEventListener

To catch the asynchroneous output, we use a serial event listener.


Field Summary
private  int count
          Minimum number of bytes that have to be available for notify.
private  Object notify
          The object we want to notify on.
 
Constructor Summary
protected AbstractSerialDriver.Available(int nr, Object monitor)
           
 
Method Summary
 void serialEvent(gnu.io.SerialPortEvent spe)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

count

private int count
Minimum number of bytes that have to be available for notify.


notify

private Object notify
The object we want to notify on.

Constructor Detail

AbstractSerialDriver.Available

protected AbstractSerialDriver.Available(int nr,
                                         Object monitor)
Method Detail

serialEvent

public void serialEvent(gnu.io.SerialPortEvent spe)
Specified by:
serialEvent in interface gnu.io.SerialPortEventListener