Modifier and Type | Field and Description |
---|---|
DnsName |
name
Deprecated.
use
target instead. |
int |
priority
The priority of this service.
|
DnsName |
target
The name of the target server.
|
Constructor and Description |
---|
MX(int priority,
DnsName name) |
MX(int priority,
String name) |
Modifier and Type | Method and Description |
---|---|
Record.TYPE |
getType()
The payload type.
|
static MX |
parse(DataInputStream dis,
byte[] data) |
void |
serialize(DataOutputStream dos)
The internal method used to serialize Data subclasses.
|
String |
toString() |
equals, hashCode, length, toByteArray, toOutputStream
public final int priority
@Deprecated public final DnsName name
target
instead.public static MX parse(DataInputStream dis, byte[] data) throws IOException
IOException
public void serialize(DataOutputStream dos) throws IOException
Data
serialize
in class Data
dos
- the output stream to serialize to.IOException
- if an I/O error occurs.public Record.TYPE getType()
Data