org.xbill.DNS
public abstract class EDNSOption extends 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(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.
|
String |
toString() |
byte[] |
toWire()
Converts an EDNS Option (including code and length) into wire format.
|
public EDNSOption(int code)
public int getCode()
public static EDNSOption fromWire(byte[] b) throws IOException
IOException
public byte[] toWire() throws IOException
IOException
public boolean equals(Object arg)