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

public class AttributesSerializer
extends java.lang.Object

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

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
Throws:
java.io.IOException
See Also:
jdbm.helper.Serializer#deserialize(byte[])

serialize

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

calculateSize

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