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

java.lang.Object
  extended by org.apache.directory.server.dns.io.decoder.IPv6RecordDecoder
All Implemented Interfaces:
RecordDecoder

public class IPv6RecordDecoder
extends java.lang.Object
implements RecordDecoder

A decoder for AAAA records. AAAA records are encoded as per RFC-3596:

   2.2. AAAA data format

     A 128 bit IPv6 address is encoded in the data portion of an AAAA
     resource record in network byte order (high-order byte first).
 

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

Constructor Summary
IPv6RecordDecoder()
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> decode(org.apache.mina.core.buffer.IoBuffer byteBuffer, short length)
          Decodes the given length of resource record data into attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IPv6RecordDecoder

public IPv6RecordDecoder()
Method Detail

decode

public java.util.Map<java.lang.String,java.lang.Object> decode(org.apache.mina.core.buffer.IoBuffer byteBuffer,
                                                               short length)
                                                        throws java.io.IOException
Description copied from interface: RecordDecoder
Decodes the given length of resource record data into attributes. The type and number of attributes depends on the type of the resource record.

Specified by:
decode in interface RecordDecoder
Returns:
The map of attributes.
Throws:
java.io.IOException


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