java.lang.Object
org.pcap4j.packet.AbstractPacket
org.pcap4j.packet.SimplePacket
org.pcap4j.packet.EncryptedPacket
- All Implemented Interfaces:
Serializable,Iterable<Packet>,Packet
- Since:
- pcap4j 1.4.0
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.pcap4j.packet.AbstractPacket
AbstractPacket.AbstractBuilder, AbstractPacket.AbstractHeaderNested classes/interfaces inherited from interface org.pcap4j.packet.Packet
Packet.Header -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateEncryptedPacket(byte[] rawData, int offset, int length) privateEncryptedPacket(EncryptedPacket.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionReturns a new Builder object populated with this object's fields' values.protected Stringmodifier()static EncryptedPacketnewPacket(byte[] rawData, int offset, int length) A static factory method.Methods inherited from class org.pcap4j.packet.SimplePacket
buildString, calcHashCode, equals, getRawData, lengthMethods inherited from class org.pcap4j.packet.AbstractPacket
buildHexString, buildRawData, calcLength, contains, get, getHeader, getOuterOf, getPayload, hashCode, iterator, toHexString, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
EncryptedPacket
private EncryptedPacket(byte[] rawData, int offset, int length) -
EncryptedPacket
-
-
Method Details
-
newPacket
A static factory method. This method validates the arguments byByteArrays.validateBounds(byte[], int, int), which may throw exceptions undocumented here.- Parameters:
rawData- rawDataoffset- offsetlength- length- Returns:
- a new EncryptedPacket object.
-
getBuilder
Description copied from interface:PacketReturns a new Builder object populated with this object's fields' values.- Specified by:
getBuilderin interfacePacket- Specified by:
getBuilderin classAbstractPacket- Returns:
- a new Builder object populated with this object's fields values
-
modifier
- Specified by:
modifierin classSimplePacket
-