com.act365.net.dns
Class DNSReader

java.lang.Object
  |
  +--com.act365.net.dns.DNSReader

public class DNSReader
extends java.lang.Object

Reads DNS messages from bytestreams.


Constructor Summary
DNSReader(int headerLength)
          Constructs a parser to decode DNS bytestreams.
 
Method Summary
 DNSMessage read(byte[] buffer)
          Reads all of the information from a DNS response.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DNSReader

public DNSReader(int headerLength)
Constructs a parser to decode DNS bytestreams.
Parameters:
headerLength - length of the transport header, e.g. 8 for UDP or 20 for TCP
Method Detail

read

public DNSMessage read(byte[] buffer)
                throws java.lang.Exception
Reads all of the information from a DNS response.