|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPacket
Method Summary | |
---|---|
java.lang.Object |
clone()
Clone this packet and its payload packet but not its parent. |
IPacket |
deserialize(byte[] data,
int offset,
int length)
Deserializes this packet layer and all possible payloads |
IPacket |
getParent()
|
IPacket |
getPayload()
|
void |
resetChecksum()
Reset any checksums as needed, and call resetChecksum on all parents |
byte[] |
serialize()
Sets all payloads parent packet if applicable, then serializes this packet and all payloads |
IPacket |
setParent(IPacket packet)
|
IPacket |
setPayload(IPacket packet)
|
Method Detail |
---|
IPacket getPayload()
IPacket setPayload(IPacket packet)
packet
-
IPacket getParent()
IPacket setParent(IPacket packet)
packet
-
void resetChecksum()
byte[] serialize()
IPacket deserialize(byte[] data, int offset, int length) throws PacketParsingException
data
- offset
- offset to start deserializing fromlength
- length of the data to deserialize
PacketParsingException
java.lang.Object clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |