|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PacketReader
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 |
int |
getWireFormatVersion()
|
Packet |
readPacketFromByteArray(byte[] data)
Deserailizes a Packet from a byte array |
void |
setWireFormatVersion(int version)
Set the wire format version |
| Method Detail |
|---|
int getPacketType()
boolean canRead(int packetType)
packetType -
Packet createPacket()
void buildPacket(Packet packet,
DataInput dataIn)
throws IOException
packet - A Packet objectdataIn - the data input stream to build the packet from
IOException
Packet readPacketFromByteArray(byte[] data)
throws IOException
data -
IOExceptionvoid setWireFormatVersion(int version)
version - int getWireFormatVersion()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||