public class MX extends Data
| Modifier and Type | Field and Description |
|---|---|
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, toOutputStreampublic final int priority
public final DnsName target
public Record.TYPE getType()
Datapublic static MX parse(DataInputStream dis, byte[] data) throws IOException
IOExceptionpublic void serialize(DataOutputStream dos) throws IOException
Dataserialize in class Datados - the output stream to serialize to.IOException - if an I/O error occurs.