public class DNSCNAME extends Serializable
DNSResourceData for CNAME 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.lang.String |
getCname() |
void |
setCname(java.lang.String cname) |
void |
toByteBuf(io.netty.buffer.ByteBuf buffer)
Writes the data of this object into the
ByteBuf. |
java.lang.String |
toString() |
toByteBuf@NotNull public java.lang.String getCname()
public void setCname(@NotNull
java.lang.String cname)
public int byteBufSize()
byteBufSize in class Serializablepublic void toByteBuf(@NotNull
io.netty.buffer.ByteBuf buffer)
SerializableByteBuf.toByteBuf in class Serializablebuffer - buffer to store the datapublic void fromByteBuf(@NotNull
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