public enum DNSOptionCode extends java.lang.Enum<DNSOptionCode>
| 枚举常量和说明 |
|---|
LLQ
Long-Lived Queries Option [http://files.dns-sd.org/draft-sekar-dns-llq.txt]
|
NSID
Name Server Identifier Option [RFC5001]
|
Owner
Owner Option [draft-cheshire-edns0-owner-option]
|
UL
Update Leases Option [http://files.dns-sd.org/draft-sekar-dns-ul.txt]
|
Unknown
Token
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
externalName()
Return the string representation of this type
|
int |
indexValue()
Return the numeric value of this type
|
static DNSOptionCode |
resultCodeForFlags(int optioncode) |
java.lang.String |
toString() |
static DNSOptionCode |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static DNSOptionCode[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final DNSOptionCode Unknown
public static final DNSOptionCode LLQ
public static final DNSOptionCode UL
public static final DNSOptionCode NSID
public static final DNSOptionCode Owner
public static DNSOptionCode[] values()
for (DNSOptionCode c : DNSOptionCode.values()) System.out.println(c);
public static DNSOptionCode valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public java.lang.String externalName()
public int indexValue()
public static DNSOptionCode resultCodeForFlags(int optioncode)
optioncode - public java.lang.String toString()
toString 在类中 java.lang.Enum<DNSOptionCode>