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

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

public class NameServerRecordDecoder
extends java.lang.Object
implements RecordDecoder

A decoder for NS records. NS records are encoded as per RFC-1035:

   3.3.11. NS RDATA format

     +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
     /                   NSDNAME                     /
     /                                               /
     +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+

   where:

   NSDNAME
     A  which specifies a host which should be authoritative for
     the specified class and domain. 
 

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

Constructor Summary
NameServerRecordDecoder()
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> decode(org.apache.mina.common.ByteBuffer 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

NameServerRecordDecoder

public NameServerRecordDecoder()
Method Detail

decode

public java.util.Map<java.lang.String,java.lang.Object> decode(org.apache.mina.common.ByteBuffer 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-2009 Apache Software Foundation. All Rights Reserved.