Top Fields Constructors Methods
com.mchange.v2.ser

public final Class SerializableUtils

extends Object
Class Inheritance
Imports
java.io.*, com.mchange.v1.io.*, com.mchange.v2.log.*

Field Summary

Modifier and TypeField and Description
pack-priv static final MLogger

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Object
public static Object
deserializeFromByteArray(byte[] bytes)
Deprecated use SerialializableUtils.fromByteArray() [shorter name is better!]

public static Object
fromByteArray(byte[] bytes)

By default, unwraps IndirectlySerialized objects, returning the original

public static Object
fromByteArray(byte[] bytes, boolean ignore_indirects)

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

public static Object
public static byte[]
public static byte[]
toByteArray(Object obj, Indirector indirector, IndirectPolicy policy)

public static final Object
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

loggerback to summary
pack-priv static final MLogger logger

Constructor Detail

SerializableUtilsback to summary
private SerializableUtils()

Method Detail

deepCopyback to summary
public static Object deepCopy(Object o) throws IOException, ClassNotFoundException
deserializeFromByteArrayback to summary
public static Object deserializeFromByteArray(byte[] bytes) throws IOException, ClassNotFoundException

Deprecated

use SerialializableUtils.fromByteArray() [shorter name is better!]

fromByteArrayback to summary
public static Object fromByteArray(byte[] bytes) throws IOException, ClassNotFoundException

By default, unwraps IndirectlySerialized objects, returning the original

fromByteArrayback to summary
public static Object fromByteArray(byte[] bytes, boolean ignore_indirects) throws IOException, ClassNotFoundException
marshallObjectToFileback to summary
public static final void marshallObjectToFile(Object o, File file) throws IOException
serializeToByteArrayback to summary
public static byte[] serializeToByteArray(Object obj) throws NotSerializableException

Deprecated

use SerialializableUtils.toByteArray() [shorter name is better!]

testSerializeDeserializeback to summary
public static Object testSerializeDeserialize(Object o) throws IOException, ClassNotFoundException
toByteArrayback to summary
public static byte[] toByteArray(Object obj) throws NotSerializableException
toByteArrayback to summary
public static byte[] toByteArray(Object obj, Indirector indirector, IndirectPolicy policy) throws NotSerializableException
unmarshallObjectFromFileback to summary
public static final Object unmarshallObjectFromFile(File file) throws IOException, ClassNotFoundException