Class MX


  • public class MX
    extends Data
    MX record payload (mail service pointer).
    • Field Detail

      • priority

        public final int priority
        The priority of this service. Lower values mean higher priority.
      • target

        public final DnsName target
        The name of the target server.
      • name

        @Deprecated
        public final DnsName name
        Deprecated.
        use target instead.
        The name of the target server.
    • Constructor Detail

      • MX

        public MX​(int priority,
                  java.lang.String name)
      • MX

        public MX​(int priority,
                  DnsName name)
    • Method Detail

      • parse

        public static MX parse​(java.io.DataInputStream dis,
                               byte[] data)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • serialize

        public void serialize​(java.io.DataOutputStream dos)
                       throws java.io.IOException
        Description copied from class: Data
        The internal method used to serialize Data subclasses.
        Specified by:
        serialize in class Data
        Parameters:
        dos - the output stream to serialize to.
        Throws:
        java.io.IOException - if an I/O error occurs.
      • toString

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