|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Allows instances implementing Packet to read from a DataOutputStream
Method Summary | |
void |
buildPacket(Packet packet,
DataInput dataIn)
build a Packet instance from the data input stream |
boolean |
canRead(int packetType)
|
Packet |
createPacket()
|
int |
getPacketType()
Return the type of Packet |
Packet |
readPacketFromByteArray(byte[] data)
Deserailizes a Packet from a byte array |
Method Detail |
public int getPacketType()
public boolean canRead(int packetType)
packetType
-
public Packet createPacket()
public void buildPacket(Packet packet, DataInput dataIn) throws IOException
packet
- A Packet objectdataIn
- the data input stream to build the packet from
IOException
public Packet readPacketFromByteArray(byte[] data) throws IOException
data
-
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |