public enum DNSLabel extends Enum<DNSLabel>
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 |
---|---|
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) |
String |
toString() |
static DNSLabel |
valueOf(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(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 static DNSLabel labelForByte(int index)
index
- public static int labelValue(int index)
index
- Copyright © 2002–2019 JmDNS. All rights reserved.