Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.act365.net.dns
Class DNSWriter  view DNSWriter download DNSWriter.java

java.lang.Object
  extended bycom.act365.net.dns.DNSWriter

public class DNSWriter
extends java.lang.Object

DNSWriter writes DNS messages to a byte stream.


Field Summary
static int AUTHORITATIVE_ANSWER
           
static int INVERSE_QUERY
           
static int ITERATIVE_QUERY
           
static int NAME_ERROR
           
static int NO_ERROR
           
static int QUERY
           
static int RECURSION_AVAILABLE
           
static int RECURSION_DESIRED
           
static int RECURSIVE_QUERY
           
static int RESPONSE
           
static int SERVER_STATUS_REQUEST
           
static int STANDARD_QUERY
           
static int TRUNCATED
           
 
Constructor Summary
DNSWriter()
           
 
Method Summary
(package private) static byte[] write(DNSMessage message)
           
(package private) static int write(Query query, byte[] buffer, int offset)
           
(package private) static int write(ResourceRecord record, byte[] buffer, int offset)
           
static byte[] write(short identification, boolean recursion_desired, java.lang.String domain)
          Generates a standard DNS Query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QUERY

public static final int QUERY
See Also:
Constant Field Values

RESPONSE

public static final int RESPONSE
See Also:
Constant Field Values

STANDARD_QUERY

public static final int STANDARD_QUERY
See Also:
Constant Field Values

INVERSE_QUERY

public static final int INVERSE_QUERY
See Also:
Constant Field Values

SERVER_STATUS_REQUEST

public static final int SERVER_STATUS_REQUEST
See Also:
Constant Field Values

AUTHORITATIVE_ANSWER

public static final int AUTHORITATIVE_ANSWER
See Also:
Constant Field Values

TRUNCATED

public static final int TRUNCATED
See Also:
Constant Field Values

RECURSION_DESIRED

public static final int RECURSION_DESIRED
See Also:
Constant Field Values

ITERATIVE_QUERY

public static final int ITERATIVE_QUERY
See Also:
Constant Field Values

RECURSIVE_QUERY

public static final int RECURSIVE_QUERY
See Also:
Constant Field Values

RECURSION_AVAILABLE

public static final int RECURSION_AVAILABLE
See Also:
Constant Field Values

NO_ERROR

public static final int NO_ERROR
See Also:
Constant Field Values

NAME_ERROR

public static final int NAME_ERROR
See Also:
Constant Field Values
Constructor Detail

DNSWriter

public DNSWriter()
Method Detail

write

static int write(Query query,
                 byte[] buffer,
                 int offset)

write

static int write(ResourceRecord record,
                 byte[] buffer,
                 int offset)

write

static byte[] write(DNSMessage message)

write

public static byte[] write(short identification,
                           boolean recursion_desired,
                           java.lang.String domain)
                    throws java.lang.Exception
Generates a standard DNS Query.