public final class DnsRDataMg extends Object implements DnsResourceRecord.DnsRData
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ / MGMNAME / / / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ where: MGMNAME A <domain-name> which specifies a mailbox which is a member of the mail group specified by the domain name.
Modifier and Type | Class and Description |
---|---|
static class |
DnsRDataMg.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
DnsRDataMg.Builder |
getBuilder() |
DnsDomainName |
getMgMName() |
byte[] |
getRawData() |
int |
hashCode() |
int |
length() |
static DnsRDataMg |
newInstance(byte[] rawData,
int offset,
int length)
A static factory method.
|
String |
toString() |
String |
toString(String indent) |
String |
toString(String indent,
byte[] headerRawData) |
public static DnsRDataMg newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException
ByteArrays.validateBounds(byte[], int, int)
, which may throw exceptions undocumented here.rawData
- rawDataoffset
- offsetlength
- lengthIllegalRawDataException
- if parsing the raw data fails.public DnsDomainName getMgMName()
public int length()
length
in interface DnsResourceRecord.DnsRData
public byte[] getRawData()
getRawData
in interface DnsResourceRecord.DnsRData
public DnsRDataMg.Builder getBuilder()
public String toString(String indent)
toString
in interface DnsResourceRecord.DnsRData
indent
- indentpublic String toString(String indent, byte[] headerRawData)
toString
in interface DnsResourceRecord.DnsRData
indent
- indentheaderRawData
- the raw data of the DNS header including this RDATA.Copyright © 2011–2019 Pcap4J.org. All rights reserved.