com.act365.net.dns
Class Query
java.lang.Object
|
+--com.act365.net.dns.Query
- public class Query
- extends java.lang.Object
Represents a DNS Query Message.
Constructor Summary |
Query(byte[] query_name,
short query_type,
short query_class,
java.lang.String domain_name)
Trivial Query constructor |
Query(java.lang.String domain_name)
Constructs a Query from a string representation of
a single domain name. |
Method Summary |
int |
length()
Message length |
java.lang.String |
toString()
String representation |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Query
public Query(byte[] query_name,
short query_type,
short query_class,
java.lang.String domain_name)
- Trivial Query constructor
Query
public Query(java.lang.String domain_name)
throws java.lang.Exception
- Constructs a Query from a string representation of
a single domain name.
length
public int length()
- Message length
toString
public java.lang.String toString()
- String representation
- Overrides:
toString
in class java.lang.Object