org.infinispan.loaders.jdbm
Class JdbmSerializer

java.lang.Object
  extended by org.infinispan.loaders.jdbm.JdbmSerializer
All Implemented Interfaces:
Serializable, jdbm.helper.Serializer

public class JdbmSerializer
extends Object
implements jdbm.helper.Serializer

Uses the configured (runtime) StreamingMarshaller of the cache. This Serializer is thus not really serializable.

Author:
Elias Ross
See Also:
Serialized Form

Constructor Summary
JdbmSerializer(StreamingMarshaller marshaller)
          Constructs a new JdbmSerializer.
 
Method Summary
 Object deserialize(byte[] buf)
           
 byte[] serialize(Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbmSerializer

public JdbmSerializer(StreamingMarshaller marshaller)
Constructs a new JdbmSerializer.

Method Detail

deserialize

public Object deserialize(byte[] buf)
                   throws IOException
Specified by:
deserialize in interface jdbm.helper.Serializer
Throws:
IOException

serialize

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


Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.