パッケージ org.pcap4j.packet
クラス DnsRDataWks
- java.lang.Object
-
- org.pcap4j.packet.DnsRDataWks
-
- すべての実装されたインタフェース:
Serializable,DnsResourceRecord.DnsRData
public final class DnsRDataWks extends Object implements DnsResourceRecord.DnsRData
DNS WKS RDATA+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | ADDRESS | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | PROTOCOL | | +--+--+--+--+--+--+--+--+ | | | / <BIT MAP> / / / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ where: ADDRESS An 32 bit Internet address PROTOCOL An 8 bit IP protocol number <BIT MAP> A variable length bit map. The bit map must be a multiple of 8 bits long.
-
-
ネストされたクラスの概要
ネストされたクラス 修飾子とタイプ クラス 説明 static classDnsRDataWks.Builder
-
メソッドの概要
すべてのメソッド staticメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 booleanequals(Object obj)Inet4AddressgetAddress()byte[]getBitMap()DnsRDataWks.BuildergetBuilder()List<Integer>getPortNumbers()IpNumbergetProtocol()byte[]getRawData()inthashCode()intlength()static DnsRDataWksnewInstance(byte[] rawData, int offset, int length)A static factory method.StringtoString()StringtoString(String indent)StringtoString(String indent, byte[] headerRawData)
-
-
-
メソッドの詳細
-
newInstance
public static DnsRDataWks 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 DnsRDataWks object.
- 例外:
IllegalRawDataException- if parsing the raw data fails.
-
getAddress
public Inet4Address getAddress()
- 戻り値:
- address
-
getProtocol
public IpNumber getProtocol()
- 戻り値:
- protocol
-
getBitMap
public byte[] getBitMap()
- 戻り値:
- bitMap. Another view of portNumbers.
- 関連項目:
getPortNumbers()
-
getPortNumbers
public List<Integer> getPortNumbers()
- 戻り値:
- portNumbers. Another view of bitMap.
- 関連項目:
getBitMap()
-
length
public int length()
- 定義:
lengthインタフェース内DnsResourceRecord.DnsRData- 戻り値:
- length
-
getRawData
public byte[] getRawData()
- 定義:
getRawDataインタフェース内DnsResourceRecord.DnsRData- 戻り値:
- raw data
-
getBuilder
public DnsRDataWks.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.
-
-