Enum Constant and Description |
---|
Compressed
Compressed label [RFC 1035]
|
Extended
Extended label [RFC 2671]
|
Standard
Standard label [RFC 1035]
|
Unknown
This is unallocated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
externalName()
Return the string representation of this type
|
int |
indexValue()
Return the numeric value of this type
|
static DNSLabel |
labelForByte(int index) |
static int |
labelValue(int index) |
java.lang.String |
toString() |
static DNSLabel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DNSLabel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DNSLabel Unknown
public static final DNSLabel Standard
public static final DNSLabel Compressed
public static final DNSLabel Extended
public static DNSLabel[] values()
for (DNSLabel c : DNSLabel.values()) System.out.println(c);
public static DNSLabel valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String externalName()
public int indexValue()
public static DNSLabel labelForByte(int index)
index
- public static int labelValue(int index)
index
- public java.lang.String toString()
toString
in class java.lang.Enum<DNSLabel>