Package org.minidns.edns
Class EdnsOption
- java.lang.Object
-
- org.minidns.edns.EdnsOption
-
- Direct Known Subclasses:
Nsid
,UnknownEdnsOption
public abstract class EdnsOption extends java.lang.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 java.lang.String
asTerminalOutput()
protected abstract java.lang.CharSequence
asTerminalOutputInternal()
abstract Edns.OptionCode
getOptionCode()
static EdnsOption
parse(int intOptionCode, byte[] optionData)
java.lang.String
toString()
protected abstract java.lang.CharSequence
toStringInternal()
void
writeToDos(java.io.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(java.io.DataOutputStream dos) throws java.io.IOException
- Throws:
java.io.IOException
-
getOptionCode
public abstract Edns.OptionCode getOptionCode()
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStringInternal
protected abstract java.lang.CharSequence toStringInternal()
-
asTerminalOutput
public final java.lang.String asTerminalOutput()
-
asTerminalOutputInternal
protected abstract java.lang.CharSequence asTerminalOutputInternal()
-
parse
public static EdnsOption parse(int intOptionCode, byte[] optionData)
-
-