org.apache.directmemory.serialization
Class StandardSerializer

java.lang.Object
  extended by org.apache.directmemory.serialization.StandardSerializer
All Implemented Interfaces:
Serializer

public final class StandardSerializer
extends Object
implements Serializer


Constructor Summary
StandardSerializer()
           
 
Method Summary
<T> T
deserialize(byte[] source, Class<T> clazz)
          
<T> byte[]
serialize(T obj)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardSerializer

public StandardSerializer()
Method Detail

serialize

public <T> byte[] serialize(T obj)
                 throws IOException

Specified by:
serialize in interface Serializer
Throws:
IOException

deserialize

public <T> T deserialize(byte[] source,
                         Class<T> clazz)
              throws IOException,
                     ClassNotFoundException

Specified by:
deserialize in interface Serializer
Throws:
IOException
ClassNotFoundException


Copyright © 2011-2012 The Apache Software Foundation. All Rights Reserved.