public class DNSA extends Serializable
DNSResourceData for A type| Modifier and Type | Method and Description |
|---|---|
int |
byteBufSize() |
void |
fromByteBuf(io.netty.buffer.ByteBuf buffer)
Fills this object with the data from the
ByteBuf. |
java.net.Inet4Address |
getAddress() |
void |
setAddress(byte[] address) |
void |
setAddress(java.net.Inet4Address address) |
void |
setAddress(int a1,
int a2,
int a3,
int a4) |
void |
toByteBuf(io.netty.buffer.ByteBuf buffer)
Writes the data of this object into the
ByteBuf. |
java.lang.String |
toString() |
toByteBufpublic java.net.Inet4Address getAddress()
public void setAddress(java.net.Inet4Address address)
public void setAddress(int a1,
int a2,
int a3,
int a4)
public void setAddress(byte[] address)
public int byteBufSize()
byteBufSize in class Serializablepublic void toByteBuf(io.netty.buffer.ByteBuf buffer)
SerializableByteBuf.toByteBuf in class Serializablebuffer - buffer to store the datapublic void fromByteBuf(io.netty.buffer.ByteBuf buffer)
throws DataNotRepresentsObject
SerializableByteBuf.
If the buffer contents doesn't match the object specification,
should throw IllegalArgumentException.fromByteBuf in class Serializablebuffer - buffer with the dataDataNotRepresentsObject - If the buffer data doesn't
represent the objectpublic java.lang.String toString()
toString in class java.lang.Object