Package org.minidns.edns
Class EdnsOption
java.lang.Object
org.minidns.edns.EdnsOption
- Direct Known Subclasses:
Nsid
,UnknownEdnsOption
public abstract class EdnsOption extends Object
-
Field Summary
Fields Modifier and Type Field Description int
optionCode
protected byte[]
optionData
int
optionLength
-
Constructor Summary
Constructors Modifier Constructor Description protected
EdnsOption(byte[] optionData)
protected
EdnsOption(int optionCode, byte[] optionData)
-
Method Summary
Modifier and Type Method Description String
asTerminalOutput()
protected abstract CharSequence
asTerminalOutputInternal()
abstract Edns.OptionCode
getOptionCode()
static EdnsOption
parse(int intOptionCode, byte[] optionData)
String
toString()
protected abstract CharSequence
toStringInternal()
void
writeToDos(DataOutputStream dos)
-
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