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.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DataEvent
public DataEvent(byte[] data,
int size)
DataEvent
public DataEvent(byte[] data,
int size,
int flag)
DataEvent
public DataEvent(ProtocolEventObject event)
getDataFlags
public int getDataFlags()