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