Package org.minidns.record
Class InternetAddressRR<IA extends InetAddress>
java.lang.Object
org.minidns.record.Data
org.minidns.record.InternetAddressRR<IA>
A resource record representing a internet address. Provides
getInetAddress().-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInternetAddressRR(byte[] ip) protectedInternetAddressRR(IA inetAddress) -
Method Summary
Modifier and TypeMethodDescriptionstatic InternetAddressRR<? extends InetAddress>from(InetAddress inetAddress) final IAfinal byte[]getIp()Allocates a new byte buffer and fills the buffer with the bytes representing the IP address of this resource record.final voidThe internal method used to serialize Data subclasses.Methods inherited from class org.minidns.record.Data
equals, getType, hashCode, length, toByteArray, toOutputStream, toOutputStream
-
Field Details
-
ip
protected final byte[] ipTarget IP.
-
-
Constructor Details
-
InternetAddressRR
protected InternetAddressRR(byte[] ip) -
InternetAddressRR
-
-
Method Details
-
serialize
Description copied from class:DataThe internal method used to serialize Data subclasses.- Specified by:
serializein classData- Parameters:
dos- the output stream to serialize to.- Throws:
IOException- if an I/O error occurs.
-
getIp
public final byte[] getIp()Allocates a new byte buffer and fills the buffer with the bytes representing the IP address of this resource record.- Returns:
- a new byte buffer containing the bytes of the IP.
-
getInetAddress
-
from
-