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

java.lang.Object
  extended byorg.apache.directory.server.core.partition.impl.btree.jdbm.BigIntegerSerializer

public class BigIntegerSerializer
extends java.lang.Object

A custom BigInteger serializer to [de]serialize BigIntegers.

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

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

Constructor Detail

BigIntegerSerializer

public BigIntegerSerializer()
Method Detail

deserialize

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

serialize

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