java.lang.Object
org.minidns.edns.EdnsOption
org.minidns.edns.UnknownEdnsOption
EDNS option for unknown option codes. This class represents EDNS options that are not specifically implemented.
Field Summary
Fields inherited from class EdnsOption
optionCode, optionData, optionLengthModifier and TypeFieldDescriptionfinal intThe EDNS option code.protected final byte[]The raw option data.final intThe length of the option data.Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUnknownEdnsOption(int optionCode, byte[] optionData) Creates a new unknown EDNS option with the specified option code and data.Method Summary
Public MethodsModifier and TypeMethodDescriptionprotected CharSequenceReturns the terminal output representation of this EDNS option.Returns the option code for this EDNS option.protected CharSequenceReturns the string representation of this EDNS option.Methods inherited from class EdnsOption
asTerminalOutput, parse, toString, writeToDosModifier and TypeMethodDescriptionfinal StringReturns the terminal output representation of this EDNS option.static EdnsOptionparse(int intOptionCode, byte[] optionData) Parses an EDNS option from the specified option code and data.final StringtoString()Returns the cached string form, computing it fromEdnsOption.toStringInternal()on first use.final voidWrites this EDNS option to the specified data output stream.
Constructor Details
UnknownEdnsOption
protected UnknownEdnsOption(int optionCode, byte[] optionData) Creates a new unknown EDNS option with the specified option code and data.- Parameters:
optionCode- the unknown option codeoptionData- the option data
Method Details
getOptionCode
Description copied from class:EdnsOptionReturns the option code for this EDNS option.- Specified by:
getOptionCodein classEdnsOption- Returns:
- the option code
asTerminalOutputInternal
Description copied from class:EdnsOptionReturns the terminal output representation of this EDNS option.- Specified by:
asTerminalOutputInternalin classEdnsOption- Returns:
- the terminal output representation
toStringInternal
Description copied from class:EdnsOptionReturns the string representation of this EDNS option.- Specified by:
toStringInternalin classEdnsOption- Returns:
- the string representation