|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jpcap.net.PacketEncoding
Packet encoding.
Contains utility methods for decoding generic packets.
Constructor Summary | |
PacketEncoding()
|
Method Summary | |
static byte[] |
extractData(int offset,
int headerLen,
byte[] bytes)
Extract data from a packet. |
static byte[] |
extractData(int offset,
int headerLen,
byte[] bytes,
int dataLength)
Extract data from a packet. |
static byte[] |
extractHeader(int offset,
int headerLen,
byte[] bytes)
Extract a header from a packet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PacketEncoding()
Method Detail |
public static byte[] extractHeader(int offset, int headerLen, byte[] bytes)
offset
- the offset in bytes to the start of the embedded header.headerLen
- the length of the header embedded in the packet.bytes
- the packet data, including the embedded header and data.
public static byte[] extractData(int offset, int headerLen, byte[] bytes)
offset
- the offset in bytes to the start of the embedded header.headerLen
- the length of the header embedded in the packet.bytes
- the packet data, including the embedded header and data.
public static byte[] extractData(int offset, int headerLen, byte[] bytes, int dataLength)
offset
- the offset in bytes to the start of the embedded header.headerLen
- the length of the header embedded in the packet.bytes
- the packet data, including the embedded header and data.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |