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

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

public class LongSerializer
extends java.lang.Object
implements Serializer

A Serializer for Longs

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

Field Summary
static LongSerializer INSTANCE
           
 
Constructor Summary
LongSerializer()
           
 
Method Summary
 java.lang.Object deserialize(byte[] bites)
          Deserialize the content of an object from a byte array.
 byte[] serialize(java.lang.Object o)
          Serialize the content of an object into a byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final LongSerializer INSTANCE
Constructor Detail

LongSerializer

public LongSerializer()
Method Detail

serialize

public byte[] serialize(java.lang.Object o)
                 throws java.io.IOException
Description copied from interface: Serializer
Serialize the content of an object into a byte array.

Specified by:
serialize in interface Serializer
Parameters:
o - Object to serialize
Returns:
a byte array representing the object's state
Throws:
java.io.IOException

deserialize

public java.lang.Object deserialize(byte[] bites)
                             throws java.io.IOException
Description copied from interface: Serializer
Deserialize the content of an object from a byte array.

Specified by:
deserialize in interface Serializer
Parameters:
bites - Byte array representation of the object
Returns:
deserialized object
Throws:
java.io.IOException


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