Package com.mchange.v2.ser
Class SerializableUtils
java.lang.Object
com.mchange.v2.ser.SerializableUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic Object
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 originalstatic Object
fromByteArray
(byte[] bytes, boolean ignore_indirects) static final void
marshallObjectToFile
(Object o, File file) static byte[]
Deprecated.use SerialializableUtils.toByteArray() [shorter name is better!]static Object
static byte[]
toByteArray
(Object obj) static byte[]
toByteArray
(Object obj, Indirector indirector, IndirectPolicy policy) static final Object
unmarshallObjectFromFile
(File file)
-
Method Details
-
toByteArray
- Throws:
NotSerializableException
-
toByteArray
public static byte[] toByteArray(Object obj, Indirector indirector, IndirectPolicy policy) throws NotSerializableException - Throws:
NotSerializableException
-
serializeToByteArray
Deprecated.use SerialializableUtils.toByteArray() [shorter name is better!]- Throws:
NotSerializableException
-
fromByteArray
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
- Throws:
IOException
ClassNotFoundException
-
deepCopy
- Throws:
IOException
ClassNotFoundException
-
unmarshallObjectFromFile
public static final Object unmarshallObjectFromFile(File file) throws IOException, ClassNotFoundException - Throws:
IOException
ClassNotFoundException
-
marshallObjectToFile
- Throws:
IOException
-