advancedrelay.laygo
Class DataEvent

java.lang.Object
  |
  +--advancedrelay.laygo.ProtocolEvent
        |
        +--advancedrelay.laygo.DataEvent
All Implemented Interfaces:
ProtocolEventObject

public class DataEvent
extends ProtocolEvent

Encapsulates the successful result of a read() or readSpecial(). The byte array may not be full, so the index of the first unused byte is stored as the size. The data should never be null or the size 0.

The constructor which converts a ProtocolEventObject to a DataEvent is intended for the very limited purpose of converting abort, CRC and length error events into data events for further processing.


Constructor Summary
DataEvent(byte[] data, int size)
           
DataEvent(byte[] data, int size, int flag)
           
DataEvent(ProtocolEventObject event)
           
 
Method Summary
 int getDataFlags()
           
 
Methods inherited from class advancedrelay.laygo.ProtocolEvent
getData, getDataSize, getType, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataEvent

public DataEvent(byte[] data,
                 int size)

DataEvent

public DataEvent(byte[] data,
                 int size,
                 int flag)

DataEvent

public DataEvent(ProtocolEventObject event)
Method Detail

getDataFlags

public int getDataFlags()