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
All Implemented Interfaces:
java.io.Serializable, jdbm.helper.Serializer

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

A custom String serializer to [de]serialize Strings.

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

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
Specified by:
deserialize in interface jdbm.helper.Serializer
Throws:
java.io.IOException

serialize

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


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