Package org.xbill.DNS
Class DClass
java.lang.Object
org.xbill.DNS.DClass
Constants and functions relating to DNS classes. This is called DClass to avoid confusion with
Class.
- Author:
- Brian Wellington
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMatches any classstatic final intChaos network (MIT)static final intChaos network (MIT, alternate name)static final intHesiod name server (MIT, alternate name)static final intHesiod name server (MIT)static final intInternetstatic final intSpecial value used in dynamic update messages -
Method Summary
-
Field Details
-
IN
public static final int INInternet- See Also:
-
CH
public static final int CHChaos network (MIT)- See Also:
-
CHAOS
public static final int CHAOSChaos network (MIT, alternate name)- See Also:
-
HS
public static final int HSHesiod name server (MIT)- See Also:
-
HESIOD
public static final int HESIODHesiod name server (MIT, alternate name)- See Also:
-
NONE
public static final int NONESpecial value used in dynamic update messages- See Also:
-
ANY
public static final int ANYMatches any class- See Also:
-
-
Method Details
-
check
public static void check(int i) Checks that a numeric DClass is valid.- Throws:
InvalidDClassException- The class is out of range.
-
string
Converts a numeric DClass into a String- Returns:
- The canonical string representation of the class
- Throws:
InvalidDClassException- The class is out of range.
-
value
Converts a String representation of a DClass into its numeric value- Returns:
- The class code, or -1 on error.
-