org.apache.directory.server.dns.io.decoder
Class DnsMessageDecoder

java.lang.Object
  extended by org.apache.directory.server.dns.io.decoder.DnsMessageDecoder

public class DnsMessageDecoder
extends java.lang.Object

A decoder for DNS messages. The primary usage of the DnsMessageDecoder is by calling the decode(ByteBuffer) method which will read the message from the incoming ByteBuffer and build a DnsMessage from it according to the DnsMessage encoding in RFC-1035.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Constructor Summary
DnsMessageDecoder()
           
 
Method Summary
 DnsMessage decode(org.apache.mina.core.buffer.IoBuffer in)
          Decode the ByteBuffer into a DnsMessage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DnsMessageDecoder

public DnsMessageDecoder()
Method Detail

decode

public DnsMessage decode(org.apache.mina.core.buffer.IoBuffer in)
                  throws java.io.IOException
Decode the ByteBuffer into a DnsMessage.

Parameters:
in -
Returns:
The DnsMessage.
Throws:
java.io.IOException


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.