IA - type of InetAddress stored in this recordpublic abstract class InternetAddressRR<IA extends InetAddress> extends Data
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
ip
Target IP.
|
| Modifier | Constructor and Description |
|---|---|
protected |
InternetAddressRR(byte[] ip) |
protected |
InternetAddressRR(IA inetAddress) |
| Modifier and Type | Method and Description |
|---|---|
static InternetAddressRR<? extends InetAddress> |
from(InetAddress inetAddress) |
IA |
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, toOutputStreamprotected InternetAddressRR(byte[] ip)
protected InternetAddressRR(IA inetAddress)
public static InternetAddressRR<? extends InetAddress> from(InetAddress inetAddress)
public final IA getInetAddress()
public final byte[] getIp()
public final void serialize(DataOutputStream dos) throws IOException
Dataserialize in class Datados - the output stream to serialize to.IOException - if an I/O error occurs.