public class DNSQuery extends Serializable
| Constructor and Description |
|---|
DNSQuery() |
| Modifier and Type | Method and Description |
|---|---|
int |
byteBufSize() |
void |
fromByteBuf(io.netty.buffer.ByteBuf buffer)
Fills this object with the data from the
ByteBuf. |
int |
getClass_() |
java.lang.String |
getClassAsString() |
java.lang.String |
getName() |
int |
getType() |
java.lang.String |
getTypeAsString() |
void |
setClass(int mclass) |
void |
setClass(java.lang.String type) |
void |
setName(java.lang.String name) |
void |
setType(int type) |
void |
setType(java.lang.String type) |
void |
toByteBuf(io.netty.buffer.ByteBuf buffer)
Writes the data of this object into the
ByteBuf. |
java.lang.String |
toString() |
toByteBufpublic java.lang.String getName()
public void setName(java.lang.String name)
public int getType()
public void setType(int type)
public java.lang.String getTypeAsString()
public void setType(java.lang.String type)
public int getClass_()
public void setClass(int mclass)
public java.lang.String getClassAsString()
public void setClass(java.lang.String type)
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