com.antiaction.dns
Class DNSClass
java.lang.Object
|
+--com.antiaction.dns.DNSClass
- Direct Known Subclasses:
- DNSQClass
- public class DNSClass
- extends java.lang.Object
DNS Class, defines the various DNS Network domains.
As defined in rfc1035.
- Version:
- 2.00
- Author:
- Nicholas Clarke
|
Field Summary |
static int |
CH
The CHAOS class. |
static int |
CS
The CSNET class (obsolete, used only for examples). |
static int |
HS
Hesiod name service. |
static int |
IN
The internet. |
|
Constructor Summary |
protected |
DNSClass()
Only the static methods are meant for public use. |
|
Method Summary |
static java.lang.String |
toString(int i)
Given a class returns a string representation. |
static boolean |
validClass(int i)
Given a class returns a boolean indicating validity. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IN
public static final int IN
- The internet.
CS
public static final int CS
- The CSNET class (obsolete, used only for examples).
CH
public static final int CH
- The CHAOS class.
HS
public static final int HS
- Hesiod name service.
DNSClass
protected DNSClass()
- Only the static methods are meant for public use.
validClass
public static boolean validClass(int i)
- Given a class returns a boolean indicating validity.
- Parameters:
i - class id.- Returns:
- class id validity.
- See Also:
toString(int)
toString
public static java.lang.String toString(int i)
- Given a class returns a string representation.
- Parameters:
i - class.- Returns:
- class string identifier.
- See Also:
validClass(int)