パッケージ org.pcap4j.packet
クラス IcmpV4CommonPacket
- java.lang.Object
-
- org.pcap4j.packet.AbstractPacket
-
- org.pcap4j.packet.IcmpV4CommonPacket
-
- すべての実装されたインタフェース:
Serializable
,Iterable<Packet>
,Packet
public final class IcmpV4CommonPacket extends AbstractPacket
- 導入されたバージョン:
- pcap4j 0.9.11
- 作成者:
- Kaito Yamada
- 関連項目:
- 直列化された形式
-
-
ネストされたクラスの概要
ネストされたクラス 修飾子とタイプ クラス 説明 static class
IcmpV4CommonPacket.Builder
static class
IcmpV4CommonPacket.IcmpV4CommonHeader
-
クラスから継承されたネストされたクラス/インタフェース org.pcap4j.packet.AbstractPacket
AbstractPacket.AbstractBuilder, AbstractPacket.AbstractHeader
-
インタフェースから継承されたネストされたクラス/インタフェース org.pcap4j.packet.Packet
Packet.Header
-
-
メソッドの概要
すべてのメソッド staticメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 IcmpV4CommonPacket.Builder
getBuilder()
Returns a new Builder object populated with this object's fields' values.IcmpV4CommonPacket.IcmpV4CommonHeader
getHeader()
Returns the Header object representing this packet's header.Packet
getPayload()
Returns the Packet object representing this packet's payload.boolean
hasValidChecksum(boolean acceptZero)
static IcmpV4CommonPacket
newPacket(byte[] rawData, int offset, int length)
A static factory method.-
クラスから継承されたメソッド org.pcap4j.packet.AbstractPacket
buildHexString, buildRawData, buildString, calcHashCode, calcLength, contains, equals, get, getOuterOf, getRawData, hashCode, iterator, length, toHexString, toString
-
インタフェースから継承されたメソッド java.lang.Iterable
forEach, spliterator
-
-
-
-
メソッドの詳細
-
newPacket
public static IcmpV4CommonPacket 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 IcmpV4CommonPacket object.
- 例外:
IllegalRawDataException
- if parsing the raw data fails.
-
getHeader
public IcmpV4CommonPacket.IcmpV4CommonHeader getHeader()
クラスからコピーされた説明:AbstractPacket
Returns 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.- 定義:
getHeader
インタフェース内Packet
- オーバーライド:
getHeader
クラス内AbstractPacket
- 戻り値:
- the Header object representing this packet's header. May be null if the header doesn't exist
-
getPayload
public Packet getPayload()
クラスからコピーされた説明:AbstractPacket
Returns 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
-
getBuilder
public IcmpV4CommonPacket.Builder getBuilder()
インタフェースからコピーされた説明:Packet
Returns 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
-
hasValidChecksum
public boolean hasValidChecksum(boolean acceptZero)
- パラメータ:
acceptZero
- acceptZero- 戻り値:
- true if the packet represented by this object has a valid checksum; false otherwise.
-
-