Package org.xbill.DNS
Class GenericEDNSOption
java.lang.Object
org.xbill.DNS.EDNSOption
org.xbill.DNS.GenericEDNSOption
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NSIDOption
An EDNSOption with no internal structure.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.xbill.DNS.EDNSOption
EDNSOption.Code -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGenericEDNSOption(int code) GenericEDNSOption(int code, byte[] data) Construct a generic EDNS option. -
Method Summary
Modifier and TypeMethodDescription(package private) voidConverts the wire format of an EDNS Option (the option data only) into the type-specific format.(package private) String(package private) voidoptionToWire(DNSOutput out) Converts an EDNS Option (the type-specific option data only) into wire format.
-
Field Details
-
data
private byte[] data
-
-
Constructor Details
-
GenericEDNSOption
GenericEDNSOption(int code) -
GenericEDNSOption
public GenericEDNSOption(int code, byte[] data) Construct a generic EDNS option.- Parameters:
data- The contents of the option.
-
-
Method Details
-
optionFromWire
Description copied from class:EDNSOptionConverts the wire format of an EDNS Option (the option data only) into the type-specific format.- Specified by:
optionFromWirein classEDNSOption- Parameters:
in- The input Stream.
-
optionToWire
Description copied from class:EDNSOptionConverts an EDNS Option (the type-specific option data only) into wire format.- Specified by:
optionToWirein classEDNSOption- Parameters:
out- The output stream.
-
optionToString
String optionToString()- Specified by:
optionToStringin classEDNSOption
-