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 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.

Author:
Apache Directory Project

Constructor Summary
DnsMessageDecoder()
           
 
Method Summary
 DnsMessage decode(org.apache.mina.core.buffer.IoBuffer in)
          Decode the IoBuffer 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 IOException
Decode the IoBuffer into a DnsMessage.

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


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