public final class IpPacket extends AbstractPacket
AbstractPacket.AbstractBuilder, AbstractPacket.AbstractHeader
Packet.Builder, Packet.Header
Modifier and Type | Method and Description |
---|---|
Packet.Builder |
getBuilder()
Returns a new Builder object populated with this object's fields' values.
|
static Packet |
newPacket(byte[] rawData,
int offset,
int length)
A static factory method.
|
buildHexString, buildRawData, buildString, calcHashCode, calcLength, contains, equals, get, getHeader, getOuterOf, getPayload, getRawData, hashCode, iterator, length, toHexString, toString
public static Packet newPacket(byte[] rawData, int offset, int length) throws IllegalRawDataException
ByteArrays.validateBounds(byte[], int, int)
,
which may throw exceptions undocumented here.rawData
- rawDataoffset
- offsetlength
- lengthIllegalRawDataException
- if parsing the raw data fails.public Packet.Builder getBuilder()
Packet
getBuilder
in interface Packet
getBuilder
in class AbstractPacket
Copyright © 2011–2016 Pcap4J.org. All rights reserved.