org.xbill.DNS
public abstract class EDNSOption extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
EDNSOption.Code |
Constructor and Description |
---|
EDNSOption(int code)
Creates an option with the given option code and data.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public EDNSOption(int code)
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 topublic int hashCode()
hashCode
in class java.lang.Object