public class GenericEDNSOption extends EDNSOption
EDNSOption.Code| Modifier and Type | Field and Description |
|---|---|
private byte[] |
data |
| Constructor and Description |
|---|
GenericEDNSOption(int code) |
GenericEDNSOption(int code,
byte[] data)
Construct a generic EDNS option.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
optionFromWire(DNSInput in)
Converts the wire format of an EDNS Option (the option data only) into the type-specific
format.
|
(package private) java.lang.String |
optionToString() |
(package private) void |
optionToWire(DNSOutput out)
Converts an EDNS Option (the type-specific option data only) into wire format.
|
GenericEDNSOption(int code)
public GenericEDNSOption(int code,
byte[] data)
data - The contents of the option.void optionFromWire(DNSInput in)
EDNSOptionoptionFromWire in class EDNSOptionin - The input Stream.void optionToWire(DNSOutput out)
EDNSOptionoptionToWire in class EDNSOptionout - The output stream.java.lang.String optionToString()
optionToString in class EDNSOption