org.apache.directory.server.dns.io.decoder
Interface RecordDecoder

All Known Implementing Classes:
AddressRecordDecoder, IPv6RecordDecoder, MailExchangeRecordDecoder, NameServerRecordDecoder

public interface RecordDecoder

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

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.
 

Method Detail

decode

java.util.Map<java.lang.String,java.lang.Object> decode(org.apache.mina.common.ByteBuffer byteBuffer,
                                                        short length)
                                                        throws java.io.IOException
Decodes the given length of resource record data into attributes. The type and number of attributes depends on the type of the resource record.

Parameters:
byteBuffer -
length -
Returns:
The map of attributes.
Throws:
java.io.IOException


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