public final class SerializationHelper extends Object
Modifier | Constructor and Description |
---|---|
private |
SerializationHelper()
Construction forbidden.
|
Modifier and Type | Method and Description |
---|---|
static Object |
deserialize(byte[] serializedObject) |
static <S extends Serializable> |
reserialize(S serializable)
Method to
serialize(Serializable) and deserialize(byte[]) an Object to create a clone and
test serialization. |
static byte[] |
serialize(Serializable serializable) |
public static <S extends Serializable> S reserialize(S serializable)
serialize(Serializable)
and deserialize(byte[])
an Object
to create a clone and
test serialization.S
- is the generic type of the serializable
Object
.serializable
- is the Object
to serialize
.de-serialized
clone.public static Object deserialize(byte[] serializedObject)
public static byte[] serialize(Serializable serializable)
serializable
- is the Serializable
Object
to serialize.serializable
as byte-array.Copyright © 2001–2016 mmm-Team. All rights reserved.