org.apache.directory.server.core.partition.impl.btree.jdbm
Class MarshallerSerializerBridge<E>

java.lang.Object
  extended by org.apache.directory.server.core.partition.impl.btree.jdbm.MarshallerSerializerBridge<E>
All Implemented Interfaces:
Marshaller<E>

public class MarshallerSerializerBridge<E>
extends java.lang.Object
implements Marshaller<E>

A Marshaller which adapts a JDBM Serializer.

Version:
$Rev$
Author:
Apache Directory Project

Constructor Summary
MarshallerSerializerBridge(Serializer serializer)
           
 
Method Summary
 E deserialize(byte[] bytes)
           
 byte[] serialize(E object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarshallerSerializerBridge

public MarshallerSerializerBridge(Serializer serializer)
Parameters:
serializer - the JDBM Serializer to wrap
Method Detail

serialize

public byte[] serialize(E object)
                 throws java.io.IOException
Specified by:
serialize in interface Marshaller<E>
Throws:
java.io.IOException
See Also:
Marshaller.serialize(Object)

deserialize

public E deserialize(byte[] bytes)
              throws java.io.IOException
Specified by:
deserialize in interface Marshaller<E>
Throws:
java.io.IOException
See Also:
Marshaller.deserialize(byte[])


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