Package org.minidns.edns
Class EdnsOption
java.lang.Object
org.minidns.edns.EdnsOption
- Direct Known Subclasses:
Nsid
,UnknownEdnsOption
-
Field Summary
Modifier and TypeFieldDescriptionfinal int
protected final byte[]
final int
-
Constructor Summary
ModifierConstructorDescriptionprotected
EdnsOption
(byte[] optionData) protected
EdnsOption
(int optionCode, byte[] optionData) -
Method Summary
Modifier and TypeMethodDescriptionfinal String
protected abstract CharSequence
abstract Edns.OptionCode
static EdnsOption
parse
(int intOptionCode, byte[] optionData) final String
toString()
protected abstract CharSequence
final void
-
Field Details
-
optionCode
public final int optionCode -
optionLength
public final int optionLength -
optionData
protected final byte[] optionData
-
-
Constructor Details
-
EdnsOption
protected EdnsOption(int optionCode, byte[] optionData) -
EdnsOption
protected EdnsOption(byte[] optionData)
-
-
Method Details
-
writeToDos
- Throws:
IOException
-
getOptionCode
-
toString
-
toStringInternal
-
asTerminalOutput
-
asTerminalOutputInternal
-
parse
-