パッケージ org.pcap4j.packet
クラス PppPacket
- java.lang.Object
-
- org.pcap4j.packet.AbstractPacket
-
- org.pcap4j.packet.PppPacket
-
- すべての実装されたインタフェース:
Serializable,Iterable<Packet>,Packet
public class PppPacket extends AbstractPacket
https://tools.ietf.org/html/rfc1661- 導入されたバージョン:
- pcap4j 1.4.0
- 作成者:
- Kaito Yamada
- 関連項目:
- 直列化された形式
-
-
ネストされたクラスの概要
ネストされたクラス 修飾子とタイプ クラス 説明 static classPppPacket.Builderstatic classPppPacket.PppHeader-
クラスから継承されたネストされたクラス/インタフェース org.pcap4j.packet.AbstractPacket
AbstractPacket.AbstractBuilder, AbstractPacket.AbstractHeader
-
インタフェースから継承されたネストされたクラス/インタフェース org.pcap4j.packet.Packet
Packet.Header
-
-
メソッドの概要
すべてのメソッド staticメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 protected byte[]buildRawData()This method builds the valuegetRawData()will return by concatenating the header's raw data and the payload's raw data.protected StringbuildString()This method builds the valuetoString()will return by concatenating the header's string representation and the payload's string representation.protected intcalcHashCode()This method calculates the valuehashCode()will return using the header's hash code and the payload's hash code.protected intcalcLength()This method calculates the valuelength()will return by adding up the header length and the payload length.booleanequals(Object obj)Indicates whether some other object is "equal to" this one.PppPacket.BuildergetBuilder()Returns a new Builder object populated with this object's fields' values.PppPacket.PppHeadergetHeader()Returns the Header object representing this packet's header.byte[]getPad()PacketgetPayload()Returns the Packet object representing this packet's payload.static PppPacketnewPacket(byte[] rawData, int offset, int length)A static factory method.-
クラスから継承されたメソッド org.pcap4j.packet.AbstractPacket
buildHexString, contains, get, getOuterOf, getRawData, hashCode, iterator, length, toHexString, toString
-
インタフェースから継承されたメソッド java.lang.Iterable
forEach, spliterator
-
-
-
-
メソッドの詳細
-
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.- パラメータ:
rawData- rawDataoffset- offsetlength- length- 戻り値:
- a new PppPacket object.
- 例外:
IllegalRawDataException- if parsing the raw data fails.
-
getHeader
public PppPacket.PppHeader getHeader()
クラスからコピーされた説明: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.
-
getBuilder
public PppPacket.Builder getBuilder()
インタフェースからコピーされた説明:PacketReturns a new Builder object populated with this object's fields' values.- 定義:
getBuilderインタフェース内Packet- 定義:
getBuilderクラス内AbstractPacket- 戻り値:
- a new Builder object populated with this object's fields values
-
getPayload
public Packet getPayload()
クラスからコピーされた説明:AbstractPacketReturns the Packet object representing this packet's payload. This subclass have to override this method if the packet represented by the subclass has a payload.- 定義:
getPayloadインタフェース内Packet- オーバーライド:
getPayloadクラス内AbstractPacket- 戻り値:
- the Packet object representing this packet's payload. May be null if the payload doesn't exist
-
getPad
public byte[] getPad()
- 戻り値:
- pad
-
calcLength
protected int calcLength()
クラスからコピーされた説明:AbstractPacketThis method calculates the valuelength()will return by adding up the header length and the payload length. If you write this subclass which represents a packet with extra parts (e.g. a trailer), you need to override this method.- オーバーライド:
calcLengthクラス内AbstractPacket- 戻り値:
- a calculated length
-
buildRawData
protected byte[] buildRawData()
クラスからコピーされた説明:AbstractPacketThis method builds the valuegetRawData()will return by concatenating the header's raw data and the payload's raw data. If you write this subclass which represents a packet with extra parts (e.g. a trailer), you need to override this method.- オーバーライド:
buildRawDataクラス内AbstractPacket- 戻り値:
- a raw data built
-
buildString
protected String buildString()
クラスからコピーされた説明:AbstractPacketThis method builds the valuetoString()will return by concatenating the header's string representation and the payload's string representation. If you write this subclass which represents a packet with extra parts (e.g. a trailer), you need to override this method.- オーバーライド:
buildStringクラス内AbstractPacket- 戻り値:
- a string representation of this object
-
equals
public boolean equals(Object obj)
クラスからコピーされた説明:AbstractPacketIndicates whether some other object is "equal to" this one. This method firstly compares this packet's header using the header's equals(Object) method, then compares this packet's payload using the payload's equals(Object) method. If you write this subclass with fields which represent somethings other than header or payload, you need to override this method.- オーバーライド:
equalsクラス内AbstractPacket
-
calcHashCode
protected int calcHashCode()
クラスからコピーされた説明:AbstractPacketThis method calculates the valuehashCode()will return using the header's hash code and the payload's hash code. If you write this subclass which represents a packet with extra parts (e.g. a trailer), you need to override this method.- オーバーライド:
calcHashCodeクラス内AbstractPacket- 戻り値:
- a calculated hash code value for the object
-
-