at.molindo.utils.data
Class SerializationUtils
java.lang.Object
at.molindo.utils.data.SerializationUtils
public class SerializationUtils
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_BUFFER
public static int DEFAULT_BUFFER
serialize
public static byte[] serialize(Object obj)
throws NotSerializableException
- Throws:
NotSerializableException
serialize
public static byte[] serialize(Object obj,
int buffer)
throws NotSerializableException
- Throws:
NotSerializableException
deserialize
public static Object deserialize(byte[] bytes)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
deserialize
public static <T> T deserialize(byte[] bytes,
Class<T> cls)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
copy
public static Object copy(Object obj)
throws NotSerializableException
- Throws:
NotSerializableException
copy
public static <T> T copy(T obj,
Class<T> cls)
throws NotSerializableException
- Throws:
NotSerializableException
copy
public static <T> T copy(T obj,
Class<T> cls,
int buffer)
throws NotSerializableException
- Throws:
NotSerializableException
Copyright © 2011 Molindo GmbH. All Rights Reserved.