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

java.lang.Object
  extended by org.apache.directory.server.core.partition.impl.btree.jdbm.StringSerializer

public class StringSerializer
extends java.lang.Object

A custom String serializer to [de]serialize Strings.

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

Constructor Summary
StringSerializer()
           
 
Method Summary
 java.lang.Object deserialize(byte[] bites)
           
 byte[] serialize(java.lang.Object str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringSerializer

public StringSerializer()
Method Detail

deserialize

public java.lang.Object deserialize(byte[] bites)
                             throws java.io.IOException
Throws:
java.io.IOException

serialize

public byte[] serialize(java.lang.Object str)
                 throws java.io.IOException
Throws:
java.io.IOException