at.molindo.utils.data
Class SerializationUtils

java.lang.Object
  extended by at.molindo.utils.data.SerializationUtils

public class SerializationUtils
extends Object


Field Summary
static int DEFAULT_BUFFER
           
 
Method Summary
static Object copy(Object obj)
           
static
<T> T
copy(T obj, Class<T> cls)
           
static
<T> T
copy(T obj, Class<T> cls, int buffer)
           
static Object deserialize(byte[] bytes)
           
static
<T> T
deserialize(byte[] bytes, Class<T> cls)
           
static byte[] serialize(Object obj)
           
static byte[] serialize(Object obj, int buffer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_BUFFER

public static int DEFAULT_BUFFER
Method Detail

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.