public final class SerializableUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
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) |
public static byte[] toByteArray(Object obj) throws NotSerializableException
NotSerializableExceptionpublic static byte[] toByteArray(Object obj, Indirector indirector, IndirectPolicy policy) throws NotSerializableException
NotSerializableExceptionpublic static byte[] serializeToByteArray(Object obj) throws NotSerializableException
NotSerializableExceptionpublic static Object fromByteArray(byte[] bytes) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic static Object fromByteArray(byte[] bytes, boolean ignore_indirects) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic static Object deserializeFromByteArray(byte[] bytes) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic static Object testSerializeDeserialize(Object o) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic static Object deepCopy(Object o) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic static final Object unmarshallObjectFromFile(File file) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic static final void marshallObjectToFile(Object o, File file) throws IOException
IOException