giovynet.serial
Interface ActionListenerReadPort


public interface ActionListenerReadPort

The listener interface to receive events from read serial port. Every time one character is received it's stored the "buffer" object. If everything is normal, then execute the method "tryActionPerformed", if there any problem in reading the port, then executes the method "catchActionPerformed".


Method Summary
 void catchActionPerformed(java.lang.Exception e)
          If there any problem in reading the port, then executes this method.
 void tryActionPerformed(Buffer buffer)
          Every time one character is received it's stored in "buffer" object.
 

Method Detail

tryActionPerformed

void tryActionPerformed(Buffer buffer)
Every time one character is received it's stored in "buffer" object. If everything is normal, then this method is executed.

Parameters:
buffer -

catchActionPerformed

void catchActionPerformed(java.lang.Exception e)
If there any problem in reading the port, then executes this method.

Parameters:
e -