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

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

public class AddressRecordDecoder
extends Object
implements RecordDecoder

A decoder for A records. As per RFC 1035

   3.4.1. A RDATA format

     +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
     |                    ADDRESS                    |
     +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+

   where:

   ADDRESS
       A 32 bit Internet address. 
 

Author:
Apache Directory Project

Constructor Summary
AddressRecordDecoder()
           
 
Method Summary
 Map<String,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

AddressRecordDecoder

public AddressRecordDecoder()
Method Detail

decode

public Map<String,Object> decode(org.apache.mina.core.buffer.IoBuffer byteBuffer,
                                 short length)
                          throws 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:
IOException


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