public enum DNSRecordClass extends Enum<DNSRecordClass>
Enum Constant and Description |
---|
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 |
Modifier and Type | Field and Description |
---|---|
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 |
Modifier and Type | Method and Description |
---|---|
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.
|
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
public static final int CLASS_MASK
public static final int CLASS_UNIQUE
public static final boolean UNIQUE
public static final boolean NOT_UNIQUE
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 nameNullPointerException
- 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>
Copyright © 2002–2013 JmDNS. All rights reserved.