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
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 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 Detail
-
optionCode
public final int optionCode
-
optionLength
public final int optionLength
-
optionData
protected final byte[] optionData
-
-
Constructor Detail
-
EdnsOption
protected EdnsOption(int optionCode, byte[] optionData)
-
EdnsOption
protected EdnsOption(byte[] optionData)
-
-
Method Detail
-
writeToDos
public final void writeToDos(DataOutputStream dos) throws IOException
- Throws:
IOException
-
getOptionCode
public abstract Edns.OptionCode getOptionCode()
-
toStringInternal
protected abstract CharSequence toStringInternal()
-
asTerminalOutput
public final String asTerminalOutput()
-
asTerminalOutputInternal
protected abstract CharSequence asTerminalOutputInternal()
-
parse
public static EdnsOption parse(int intOptionCode, byte[] optionData)
-
-