|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xbill.DNS.EDNSOption
public abstract class EDNSOption
DNS extension options, as described in RFC 2671. The rdata of an OPT record is defined as a list of options; this represents a single option.
Nested Class Summary | |
---|---|
static class |
EDNSOption.Code
|
Constructor Summary | |
---|---|
EDNSOption(int code)
Creates an option with the given option code and data. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object arg)
Determines if two EDNS Options are identical. |
static EDNSOption |
fromWire(byte[] b)
Converts the wire format of an EDNS Option (including code and length) into the type-specific format. |
int |
getCode()
Returns the EDNS Option's code. |
int |
hashCode()
Generates a hash code based on the EDNS Option's data. |
java.lang.String |
toString()
|
byte[] |
toWire()
Converts an EDNS Option (including code and length) into wire format. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EDNSOption(int code)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public int getCode()
public static EDNSOption fromWire(byte[] b) throws java.io.IOException
java.io.IOException
public byte[] toWire() throws java.io.IOException
java.io.IOException
public boolean equals(java.lang.Object arg)
equals
in class java.lang.Object
arg
- The option to compare to
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |