|
JmDNS 3.4.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<DNSRecordClass>
javax.jmdns.impl.constants.DNSRecordClass
public enum DNSRecordClass
DNS Record Class
| Enum Constant Summary | |
|---|---|
CLASS_ANY
Not a DNS class, but a DNS query class, meaning "all classes" |
|
CLASS_CH
CHAOS |
|
CLASS_CS
CSNET |
|
CLASS_HS
Hesiod |
|
CLASS_IN
static final Internet |
|
CLASS_NONE
Used in DNS UPDATE [RFC 2136] |
|
CLASS_UNKNOWN
|
|
| Field Summary | |
|---|---|
static int |
CLASS_MASK
Multicast DNS uses the bottom 15 bits to identify the record class... Except for pseudo records like OPT. |
static int |
CLASS_UNIQUE
For answers the top bit indicates that all other cached records are now invalid. For questions it indicates that we should send a unicast response. |
static boolean |
NOT_UNIQUE
|
static boolean |
UNIQUE
|
| Method Summary | |
|---|---|
static DNSRecordClass |
classForIndex(int index)
|
static DNSRecordClass |
classForName(String name)
|
String |
externalName()
Return the string representation of this type |
int |
indexValue()
Return the numeric value of this type |
boolean |
isUnique(int index)
Checks if the class is unique |
String |
toString()
|
static DNSRecordClass |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DNSRecordClass[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final DNSRecordClass CLASS_UNKNOWN
public static final DNSRecordClass CLASS_IN
public static final DNSRecordClass CLASS_CS
public static final DNSRecordClass CLASS_CH
public static final DNSRecordClass CLASS_HS
public static final DNSRecordClass CLASS_NONE
public static final DNSRecordClass CLASS_ANY
| Field Detail |
|---|
public static final int CLASS_MASK
public static final int CLASS_UNIQUE
public static final boolean UNIQUE
public static final boolean NOT_UNIQUE
| Method Detail |
|---|
public static DNSRecordClass[] values()
for (DNSRecordClass c : DNSRecordClass.values()) System.out.println(c);
public static DNSRecordClass valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String externalName()
public int indexValue()
public boolean isUnique(int index)
index -
true is the class is unique, false otherwise.public static DNSRecordClass classForName(String name)
name -
public static DNSRecordClass classForIndex(int index)
index -
public String toString()
toString in class Enum<DNSRecordClass>
|
Last updated 2011-08-25 12:40 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||