org.apache.directmemory.serialization
Class StandardSerializer
java.lang.Object
org.apache.directmemory.serialization.StandardSerializer
- All Implemented Interfaces:
- Serializer
public final class StandardSerializer
- extends Object
- implements Serializer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardSerializer
public StandardSerializer()
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.