| Modifier and Type | Field and Description |
|---|---|
protected String |
name
The target server.
|
protected int |
priority
The priority of this service.
|
| Constructor and Description |
|---|
MX() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
The name of the target server.
|
int |
getPriority()
The priority of this service.
|
Record.TYPE |
getType()
The payload type.
|
void |
parse(DataInputStream dis,
byte[] data,
int length)
Parse this payload.
|
void |
setName(String name)
Set the name of the target server.
|
void |
setPriority(int priority)
Set the priority of this service entry.
|
byte[] |
toByteArray()
Binary representation of this payload.
|
String |
toString() |
protected int priority
protected String name
public int getPriority()
public void setPriority(int priority)
priority - The new priority.public String getName()
public void setName(String name)
name - The new target servers name.public byte[] toByteArray()
DatatoByteArray in interface Datapublic void parse(DataInputStream dis, byte[] data, int length) throws IOException
Dataparse in interface Datadis - The input stream.data - The plain data (needed for name cross references).length - The payload length.IOException - on io error (read past paket boundary).public Record.TYPE getType()
DataCopyright © 2014–2015. All rights reserved.