Serialio
Interface LookForListener

All Superinterfaces:
java.util.EventListener

public interface LookForListener
extends java.util.EventListener

Interface for watching receive stream

  • Copyright (c) 1998-2004 Serialio.com, All Rights Reserved.


    Method Summary
     void eventLookForData(byte[] data, boolean sighted, long time, byte[] buf)
              Receives notification when searched for data is sighted or timeout
     

    Method Detail

    eventLookForData

    public void eventLookForData(byte[] data,
                                 boolean sighted,
                                 long time,
                                 byte[] buf)
    Receives notification when searched for data is sighted or timeout

    Parameters:
    data - Data that was searched for.
    sighted - Flag for to indicate data sighted or timeout.
    time - Time of sighting (when last data of match occurred) Time contains timeout value when sighted is false
    buf - The last 'save buffer' of data at the time of the sighting