Package com.mchange.v2.ser
Class SerializableUtils
java.lang.Object
com.mchange.v2.ser.SerializableUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic Objectstatic ObjectdeserializeFromByteArray(byte[] bytes) Deprecated.use SerialializableUtils.fromByteArray() [shorter name is better!]static ObjectfromByteArray(byte[] bytes) By default, unwraps IndirectlySerialized objects, returning the originalstatic ObjectfromByteArray(byte[] bytes, boolean ignore_indirects) static final voidmarshallObjectToFile(Object o, File file) static byte[]Deprecated.use SerialializableUtils.toByteArray() [shorter name is better!]static Objectstatic byte[]toByteArray(Object obj) static byte[]toByteArray(Object obj, Indirector indirector, IndirectPolicy policy) static final ObjectunmarshallObjectFromFile(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:
IOExceptionClassNotFoundException
-
fromByteArray
public static Object fromByteArray(byte[] bytes, boolean ignore_indirects) throws IOException, ClassNotFoundException - Throws:
IOExceptionClassNotFoundException
-
deserializeFromByteArray
public static Object deserializeFromByteArray(byte[] bytes) throws IOException, ClassNotFoundException Deprecated.use SerialializableUtils.fromByteArray() [shorter name is better!]- Throws:
IOExceptionClassNotFoundException
-
testSerializeDeserialize
- Throws:
IOExceptionClassNotFoundException
-
deepCopy
- Throws:
IOExceptionClassNotFoundException
-
unmarshallObjectFromFile
public static final Object unmarshallObjectFromFile(File file) throws IOException, ClassNotFoundException - Throws:
IOExceptionClassNotFoundException
-
marshallObjectToFile
- Throws:
IOException
-