org.apache.directory.server.core.partition.impl.btree.jdbm
Class AttributesSerializer

java.lang.Object
  extended by org.apache.directory.server.core.partition.impl.btree.jdbm.AttributesSerializer
All Implemented Interfaces:
java.io.Serializable, jdbm.helper.Serializer

public class AttributesSerializer
extends java.lang.Object
implements jdbm.helper.Serializer

Version:
$Rev$, $Date$
Author:
Apache Directory Project
See Also:
Serialized Form

Constructor Summary
AttributesSerializer()
           
 
Method Summary
 int calculateSize(javax.naming.directory.Attributes attrs)
           
 java.lang.Object deserialize(byte[] buf)
           
 byte[] serialize(java.lang.Object attrsObj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributesSerializer

public AttributesSerializer()
Method Detail

deserialize

public java.lang.Object deserialize(byte[] buf)
                             throws java.io.IOException
Specified by:
deserialize in interface jdbm.helper.Serializer
Throws:
java.io.IOException
See Also:
Serializer.deserialize(byte[])

serialize

public byte[] serialize(java.lang.Object attrsObj)
                 throws java.io.IOException
Specified by:
serialize in interface jdbm.helper.Serializer
Throws:
java.io.IOException
See Also:
Serializer.serialize(java.lang.Object)

calculateSize

public int calculateSize(javax.naming.directory.Attributes attrs)
                  throws java.io.IOException
Throws:
java.io.IOException


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