Class DnsRDataMr

  • All Implemented Interfaces:
    java.io.Serializable, DnsResourceRecord.DnsRData

    public final class DnsRDataMr
    extends java.lang.Object
    implements DnsResourceRecord.DnsRData
    DNS MR RDATA
     +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
     /                   NEWNAME                     /
     /                                               /
     +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
    
     where:
    
     NEWNAME         A <domain-name> which specifies a mailbox which is the
                     proper rename of the specified mailbox.
     
    Since:
    pcap4j 1.7.1
    Author:
    Kaito Yamada
    See Also:
    RFC 1035, Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  DnsRDataMr.Builder  
    • Method Summary

      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      DnsRDataMr.Builder getBuilder()  
      DnsDomainName getNewName()  
      byte[] getRawData()  
      int hashCode()  
      int length()  
      static DnsRDataMr newInstance​(byte[] rawData, int offset, int length)
      A static factory method.
      java.lang.String toString()  
      java.lang.String toString​(java.lang.String indent)  
      java.lang.String toString​(java.lang.String indent, byte[] headerRawData)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getNewName

        public DnsDomainName getNewName()
        Returns:
        newName
      • getBuilder

        public DnsRDataMr.Builder getBuilder()
        Returns:
        a new Builder object populated with this object's fields.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toString

        public java.lang.String toString​(java.lang.String indent)
        Specified by:
        toString in interface DnsResourceRecord.DnsRData
        Parameters:
        indent - indent
        Returns:
        String representation of this object.
      • toString

        public java.lang.String toString​(java.lang.String indent,
                                         byte[] headerRawData)
        Specified by:
        toString in interface DnsResourceRecord.DnsRData
        Parameters:
        indent - indent
        headerRawData - the raw data of the DNS header including this RDATA.
        Returns:
        String representation of this object.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object