Class PppPacket
java.lang.Object
org.pcap4j.packet.AbstractPacket
org.pcap4j.packet.AbstractPppPacket
org.pcap4j.packet.PppPacket
- All Implemented Interfaces:
Serializable, Iterable<Packet>, Packet
https://tools.ietf.org/html/rfc1661
- Since:
- pcap4j 1.4.0
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class AbstractPppPacket
AbstractPppPacket.AbstractPppHeaderNested classes/interfaces inherited from class AbstractPacket
AbstractPacket.AbstractBuilder, AbstractPacket.AbstractHeaderNested classes/interfaces inherited from interface Packet
Packet.Header -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePppPacket(byte[] rawData, int offset, int length, PppPacket.PppHeader header) privatePppPacket(PppPacket.Builder builder) -
Method Summary
Methods inherited from class AbstractPppPacket
buildRawData, buildString, calcHashCode, calcLength, equals, getPad, getPayloadMethods inherited from class AbstractPacket
buildHexString, contains, get, getOuterOf, getRawData, hashCode, iterator, length, toHexString, toStringMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
header
-
-
Constructor Details
-
PppPacket
private PppPacket(byte[] rawData, int offset, int length, PppPacket.PppHeader header) throws IllegalRawDataException - Throws:
IllegalRawDataException
-
PppPacket
-
-
Method Details
-
newPacket
public static PppPacket newPacket(byte[] rawData, int offset, int length) throws IllegalRawDataException 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 PppPacket object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getHeader
Description copied from class:AbstractPacketReturns the Header object representing this packet's header. This subclass have to override this method if the packet represented by the subclass has a header.- Specified by:
getHeaderin interfacePacket- Specified by:
getHeaderin classAbstractPppPacket- Returns:
- the Header object representing this packet's header. May be null if the header doesn't exist
-
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
-