パッケージ org.pcap4j.packet
クラス Ssh2NewKeysPacket
- java.lang.Object
-
- org.pcap4j.packet.AbstractPacket
-
- org.pcap4j.packet.Ssh2NewKeysPacket
-
- すべての実装されたインタフェース:
Serializable
,Iterable<Packet>
,Packet
public final class Ssh2NewKeysPacket extends AbstractPacket
- 導入されたバージョン:
- pcap4j 1.0.1
- 作成者:
- Kaito Yamada
- 関連項目:
- 直列化された形式
-
-
ネストされたクラスの概要
ネストされたクラス 修飾子とタイプ クラス 説明 static class
Ssh2NewKeysPacket.Ssh2NewKeysHeader
-
クラスから継承されたネストされたクラス/インタフェース org.pcap4j.packet.AbstractPacket
AbstractPacket.AbstractBuilder, AbstractPacket.AbstractHeader
-
インタフェースから継承されたネストされたクラス/インタフェース org.pcap4j.packet.Packet
Packet.Builder, Packet.Header
-
-
メソッドの概要
すべてのメソッド staticメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 protected int
calcHashCode()
This method calculates the valuehashCode()
will return using the header's hash code and the payload's hash code.boolean
equals(Object obj)
Indicates whether some other object is "equal to" this one.Packet.Builder
getBuilder()
Returns a new Builder object populated with this object's fields' values.Ssh2NewKeysPacket.Ssh2NewKeysHeader
getHeader()
Returns the Header object representing this packet's header.static Ssh2NewKeysPacket
getInstance()
static Ssh2NewKeysPacket
newPacket(byte[] rawData, int offset, int length)
A static factory method.-
クラスから継承されたメソッド org.pcap4j.packet.AbstractPacket
buildHexString, buildRawData, buildString, calcLength, contains, get, getOuterOf, getPayload, getRawData, hashCode, iterator, length, toHexString, toString
-
インタフェースから継承されたメソッド java.lang.Iterable
forEach, spliterator
-
-
-
-
メソッドの詳細
-
getInstance
public static Ssh2NewKeysPacket getInstance()
- 戻り値:
- the singleton instance of Ssh2NewKeysPacket.
-
newPacket
public static Ssh2NewKeysPacket 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- 戻り値:
- the singleton instance of Ssh2NewKeysPacket.
- 例外:
IllegalRawDataException
- if parsing the raw data fails.
-
getHeader
public Ssh2NewKeysPacket.Ssh2NewKeysHeader 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
-
getBuilder
public Packet.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
-
equals
public boolean equals(Object obj)
クラスからコピーされた説明:AbstractPacket
Indicates 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()
クラスからコピーされた説明:AbstractPacket
This 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
-
-