org.apache.directmemory.serialization
Interface Serializer

All Known Implementing Classes:
StandardSerializer

public interface Serializer


Method Summary
<T> T
deserialize(byte[] source, Class<T> clazz)
           
<T> byte[]
serialize(T obj)
           
 

Method Detail

serialize

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

deserialize

<T> T deserialize(byte[] source,
                  Class<T> clazz)
              throws IOException,
                     ClassNotFoundException,
                     InstantiationException,
                     IllegalAccessException
Throws:
IOException
ClassNotFoundException
InstantiationException
IllegalAccessException


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