Package org.xbill.DNS

Class Section

java.lang.Object
org.xbill.DNS.Section

public final class Section extends Object
Constants and functions relating to DNS message sections
Author:
Brian Wellington
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The additional (fourth) section
    static final int
    The answer (second) section
    static final int
    The authority (third) section
    static final int
    The prerequisite (second) section of a dynamic update message
    static final int
    The question (first) section
    static final int
    The update (third) section of a dynamic update message
    static final int
    The zone (first) section of a dynamic update message
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    check(int section)
    Checks that a numeric section value is valid.
    static String
    longString(int i)
    Converts a numeric Section into a full description String
    static String
    string(int i)
    Converts a numeric Section into an abbreviation String
    static String
    updString(int i)
    Converts a numeric Section into a full description String for an update Message.
    static int
    Converts a String representation of a Section into its numeric value

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • QUESTION

      public static final int QUESTION
      The question (first) section
      See Also:
    • ANSWER

      public static final int ANSWER
      The answer (second) section
      See Also:
    • AUTHORITY

      public static final int AUTHORITY
      The authority (third) section
      See Also:
    • ADDITIONAL

      public static final int ADDITIONAL
      The additional (fourth) section
      See Also:
    • ZONE

      public static final int ZONE
      The zone (first) section of a dynamic update message
      See Also:
    • PREREQ

      public static final int PREREQ
      The prerequisite (second) section of a dynamic update message
      See Also:
    • UPDATE

      public static final int UPDATE
      The update (third) section of a dynamic update message
      See Also:
  • Method Details

    • string

      public static String string(int i)
      Converts a numeric Section into an abbreviation String
    • longString

      public static String longString(int i)
      Converts a numeric Section into a full description String
    • updString

      public static String updString(int i)
      Converts a numeric Section into a full description String for an update Message.
    • value

      public static int value(String s)
      Converts a String representation of a Section into its numeric value
    • check

      public static void check(int section)
      Checks that a numeric section value is valid.
      Since:
      3.6