public abstract class InternetAddressRR extends Data
getInetAddress()
.Modifier and Type | Field and Description |
---|---|
protected byte[] |
ip
Target IP.
|
Modifier | Constructor and Description |
---|---|
protected |
InternetAddressRR(byte[] ip) |
Modifier and Type | Method and Description |
---|---|
InetAddress |
getInetAddress() |
byte[] |
getIp()
Allocates a new byte buffer and fills the buffer with the bytes representing the IP address of this resource record.
|
void |
serialize(DataOutputStream dos)
The internal method used to serialize Data subclasses.
|
equals, getType, hashCode, length, toByteArray, toOutputStream
protected final byte[] ip
protected InternetAddressRR(byte[] ip)
public final 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 final byte[] getIp()
public final InetAddress getInetAddress()