Class DnsRDataMd
java.lang.Object
org.pcap4j.packet.DnsRDataMd
- All Implemented Interfaces:
Serializable, DnsResourceRecord.DnsRData
DNS MD RDATA
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
/ MADNAME /
/ /
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
where:
MADNAME A <domain-name> which specifies a host which has a mail
agent for the domain which should be able to deliver
mail for the domain.
- Since:
- pcap4j 1.7.1
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDnsRDataMd(byte[] rawData, int offset, int length) privateDnsRDataMd(DnsRDataMd.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionprivate StringconvertToString(String indent, byte[] headerRawData) booleanbyte[]inthashCode()intlength()static DnsRDataMdnewInstance(byte[] rawData, int offset, int length) A static factory method.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
maDName
-
-
Constructor Details
-
DnsRDataMd
- Throws:
IllegalRawDataException
-
DnsRDataMd
-
-
Method Details
-
newInstance
public static DnsRDataMd 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.- Parameters:
rawData- rawDataoffset- offsetlength- length- Returns:
- a new DnsRDataMd object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getMaDName
- Returns:
- maDName
-
length
public int length()- Specified by:
lengthin interfaceDnsResourceRecord.DnsRData- Returns:
- length
-
getRawData
public byte[] getRawData()- Specified by:
getRawDatain interfaceDnsResourceRecord.DnsRData- Returns:
- raw data
-
getBuilder
- Returns:
- a new Builder object populated with this object's fields.
-
toString
-
toString
- Specified by:
toStringin interfaceDnsResourceRecord.DnsRData- Parameters:
indent- indent- Returns:
- String representation of this object.
-
toString
- Specified by:
toStringin interfaceDnsResourceRecord.DnsRData- Parameters:
indent- indentheaderRawData- the raw data of the DNS header including this RDATA.- Returns:
- String representation of this object.
-
convertToString
-
hashCode
-
equals
-