org.terracotta.cache.serialization
Class NonDsoSerializationStrategy

java.lang.Object
  extended by org.terracotta.cache.serialization.NonDsoSerializationStrategy
All Implemented Interfaces:
SerializationStrategy

public class NonDsoSerializationStrategy
extends Object
implements SerializationStrategy


Constructor Summary
NonDsoSerializationStrategy()
           
 
Method Summary
 Object deserialize(byte[] data)
           
 Object deserialize(byte[] data, ClassLoader loader)
           
 String generateStringKeyFor(Object value)
           
 byte[] serialize(Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonDsoSerializationStrategy

public NonDsoSerializationStrategy()
Method Detail

deserialize

public Object deserialize(byte[] data)
                   throws IOException,
                          ClassNotFoundException
Specified by:
deserialize in interface SerializationStrategy
Throws:
IOException
ClassNotFoundException

generateStringKeyFor

public String generateStringKeyFor(Object value)
                            throws IOException
Specified by:
generateStringKeyFor in interface SerializationStrategy
Throws:
IOException

serialize

public byte[] serialize(Object value)
                 throws IOException
Specified by:
serialize in interface SerializationStrategy
Throws:
IOException

deserialize

public Object deserialize(byte[] data,
                          ClassLoader loader)
                   throws IOException,
                          ClassNotFoundException
Specified by:
deserialize in interface SerializationStrategy
Throws:
IOException
ClassNotFoundException


Copyright © 2010 Terracotta, Inc.. All Rights Reserved.