パッケージ org.pcap4j.packet
クラス DnsQuestion
- java.lang.Object
-
- org.pcap4j.packet.DnsQuestion
-
- すべての実装されたインタフェース:
Serializable
public final class DnsQuestion extends Object implements Serializable
DNS Question1 1 1 1 1 1 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | | / QNAME / / / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | QTYPE | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | QCLASS | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
-
-
ネストされたクラスの概要
ネストされたクラス 修飾子とタイプ クラス 説明 static class
DnsQuestion.Builder
-
メソッドの概要
すべてのメソッド staticメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 boolean
equals(Object obj)
DnsQuestion.Builder
getBuilder()
DnsClass
getQClass()
DnsDomainName
getQName()
DnsResourceRecordType
getQType()
byte[]
getRawData()
int
hashCode()
int
length()
static DnsQuestion
newInstance(byte[] rawData, int offset, int length)
A static factory method.String
toString()
String
toString(String indent)
String
toString(String indent, byte[] headerRawData)
-
-
-
メソッドの詳細
-
newInstance
public static DnsQuestion 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 DnsQuestion object.
- 例外:
IllegalRawDataException
- if parsing the raw data fails.
-
getQName
public DnsDomainName getQName()
- 戻り値:
- qName
-
getQType
public DnsResourceRecordType getQType()
- 戻り値:
- qType
-
getQClass
public DnsClass getQClass()
- 戻り値:
- qClass
-
getBuilder
public DnsQuestion.Builder getBuilder()
- 戻り値:
- a new Builder object populated with this object's fields.
-
getRawData
public byte[] getRawData()
- 戻り値:
- the raw data.
-
length
public int length()
- 戻り値:
- length
-
toString
public String toString(String indent)
- パラメータ:
indent
- indent- 戻り値:
- String representation of this object.
-
toString
public String toString(String indent, byte[] headerRawData)
- パラメータ:
indent
- indentheaderRawData
- the raw data of the DNS header including this question.- 戻り値:
- String representation of this object.
-
-