public final class QuerySection extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
QUERY_CLASS_IN |
static int |
QUERY_TYPE_A |
static int |
QUERY_TYPE_CNAME |
static int |
QUERY_TYPE_MX |
static int |
QUERY_TYPE_NS |
static int |
QUERY_TYPE_PTR |
static int |
QUERY_TYPE_SOA |
static int |
QUERY_TYPE_TXT |
| Modifier and Type | Method and Description |
|---|---|
int |
getQClass()
Returns the query class of this section.
|
String |
getQName()
This method returns the query name as a readable string.
|
int |
getQType()
Reqturns the query type of this section.
|
int |
length()
This method returns the complete length in bytes of this query section.
|
static QuerySection |
read(byte[] buf,
int offset)
This method parses a query section from the given buffer.
|
byte[] |
toByteArray()
This method returns this query section in form of a byte
array, which reflects the appropriate format for sending
this section over the wire.
|
public static final int QUERY_CLASS_IN
public static final int QUERY_TYPE_A
public static final int QUERY_TYPE_NS
public static final int QUERY_TYPE_CNAME
public static final int QUERY_TYPE_SOA
public static final int QUERY_TYPE_PTR
public static final int QUERY_TYPE_MX
public static final int QUERY_TYPE_TXT
public int getQClass()
public int getQType()
public String getQName()
public int length()
public static QuerySection read(byte[] buf, int offset) throws Exception
buf - offset - Exceptionpublic byte[] toByteArray()
Copyright © 2013. All Rights Reserved.