パッケージ org.pcap4j.packet
クラス DnsRDataHInfo
- java.lang.Object
-
- org.pcap4j.packet.DnsRDataHInfo
-
- すべての実装されたインタフェース:
Serializable,DnsResourceRecord.DnsRData
public final class DnsRDataHInfo extends Object implements DnsResourceRecord.DnsRData
DNS HINFO RDATA+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ / CPU / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ / OS / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ where: CPU A <character-string> which specifies the CPU type. OS A <character-string> which specifies the operating system type.
-
-
ネストされたクラスの概要
ネストされたクラス 修飾子とタイプ クラス 説明 static classDnsRDataHInfo.Builder
-
メソッドの概要
すべてのメソッド staticメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 booleanequals(Object obj)DnsRDataHInfo.BuildergetBuilder()StringgetCpu()StringgetOs()byte[]getRawData()inthashCode()intlength()static DnsRDataHInfonewInstance(byte[] rawData, int offset, int length)A static factory method.StringtoString()StringtoString(String indent)StringtoString(String indent, byte[] headerRawData)
-
-
-
メソッドの詳細
-
newInstance
public static DnsRDataHInfo newInstance(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 DnsRDataHInfo object.
- 例外:
IllegalRawDataException- if parsing the raw data fails.
-
getCpu
public String getCpu()
- 戻り値:
- cpu
-
getOs
public String getOs()
- 戻り値:
- os
-
length
public int length()
- 定義:
lengthインタフェース内DnsResourceRecord.DnsRData- 戻り値:
- length
-
getRawData
public byte[] getRawData()
- 定義:
getRawDataインタフェース内DnsResourceRecord.DnsRData- 戻り値:
- raw data
-
getBuilder
public DnsRDataHInfo.Builder getBuilder()
- 戻り値:
- a new Builder object populated with this object's fields.
-
toString
public String toString(String indent)
- 定義:
toStringインタフェース内DnsResourceRecord.DnsRData- パラメータ:
indent- indent- 戻り値:
- String representation of this object.
-
toString
public String toString(String indent, byte[] headerRawData)
- 定義:
toStringインタフェース内DnsResourceRecord.DnsRData- パラメータ:
indent- indentheaderRawData- the raw data of the DNS header including this RDATA.- 戻り値:
- String representation of this object.
-
-