Package org.xbill.DNS

Class MGRecord

java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.MGRecord
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Record>

public class MGRecord extends Record
Mail Group Record - specifies a mailbox which is a member of a mail group.
Author:
Brian Wellington
See Also:
  • Field Details

    • singleName

      protected Name singleName
  • Constructor Details

    • MGRecord

      public MGRecord(Name name, int dclass, long ttl, Name mailbox)
      Creates a new MG Record with the given data
      Parameters:
      mailbox - The mailbox that is a member of the group specified by the domain.
  • Method Details

    • getMailbox

      public Name getMailbox()
      Gets the mailbox in the mail group specified by the domain
    • rrFromWire

      protected void rrFromWire(DNSInput in) throws IOException
      Description copied from class: Record
      Converts the type-specific RR to wire format - must be overridden
      Specified by:
      rrFromWire in class Record
      Throws:
      IOException
    • rdataFromString

      protected void rdataFromString(Tokenizer st, Name origin) throws IOException
      Description copied from class: Record
      Converts the text format of an RR to the internal format - must be overriden
      Specified by:
      rdataFromString in class Record
      Throws:
      IOException
    • rrToString

      protected String rrToString()
      Description copied from class: Record
      Converts the type-specific RR to text format - must be overridden.
      Specified by:
      rrToString in class Record
    • getSingleName

      protected Name getSingleName()
    • rrToWire

      protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
      Description copied from class: Record
      Converts the type-specific RR to wire format - must be overridden.
      Specified by:
      rrToWire in class Record