com.mchange.v2.ser
Class SerializableUtils

java.lang.Object
  extended by com.mchange.v2.ser.SerializableUtils

public final class SerializableUtils
extends Object


Method Summary
static Object deepCopy(Object o)
           
static Object deserializeFromByteArray(byte[] bytes)
          Deprecated. use SerialializableUtils.fromByteArray() [shorter name is better!]
static Object fromByteArray(byte[] bytes)
          By default, unwraps IndirectlySerialized objects, returning the original
static Object fromByteArray(byte[] bytes, boolean ignore_indirects)
           
static void marshallObjectToFile(Object o, File file)
           
static byte[] serializeToByteArray(Object obj)
          Deprecated. use SerialializableUtils.toByteArray() [shorter name is better!]
static Object testSerializeDeserialize(Object o)
           
static byte[] toByteArray(Object obj)
           
static byte[] toByteArray(Object obj, Indirector indirector, IndirectPolicy policy)
           
static Object unmarshallObjectFromFile(File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toByteArray

public static byte[] toByteArray(Object obj)
                          throws NotSerializableException
Throws:
NotSerializableException

toByteArray

public static byte[] toByteArray(Object obj,
                                 Indirector indirector,
                                 IndirectPolicy policy)
                          throws NotSerializableException
Throws:
NotSerializableException

serializeToByteArray

public static byte[] serializeToByteArray(Object obj)
                                   throws NotSerializableException
Deprecated. use SerialializableUtils.toByteArray() [shorter name is better!]

Throws:
NotSerializableException

fromByteArray

public static Object fromByteArray(byte[] bytes)
                            throws IOException,
                                   ClassNotFoundException
By default, unwraps IndirectlySerialized objects, returning the original

Throws:
IOException
ClassNotFoundException

fromByteArray

public static Object fromByteArray(byte[] bytes,
                                   boolean ignore_indirects)
                            throws IOException,
                                   ClassNotFoundException
Throws:
IOException
ClassNotFoundException

deserializeFromByteArray

public static Object deserializeFromByteArray(byte[] bytes)
                                       throws IOException,
                                              ClassNotFoundException
Deprecated. use SerialializableUtils.fromByteArray() [shorter name is better!]

Throws:
IOException
ClassNotFoundException

testSerializeDeserialize

public static Object testSerializeDeserialize(Object o)
                                       throws IOException,
                                              ClassNotFoundException
Throws:
IOException
ClassNotFoundException

deepCopy

public static Object deepCopy(Object o)
                       throws IOException,
                              ClassNotFoundException
Throws:
IOException
ClassNotFoundException

unmarshallObjectFromFile

public static final Object unmarshallObjectFromFile(File file)
                                             throws IOException,
                                                    ClassNotFoundException
Throws:
IOException
ClassNotFoundException

marshallObjectToFile

public static final void marshallObjectToFile(Object o,
                                              File file)
                                       throws IOException
Throws:
IOException