public final class Serialization extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Serialization.PrimitivesInputStream
Supports correct de-serialization of primitive types.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends Serializable> |
deserialize(byte[] bytes)
Deserializes object stored in the byte array.
|
static <T extends Serializable> |
deserialize(ByteArrayInputStream is,
ClassLoader classLoader)
Deserializes object stored in the byte array.
|
static <T extends Serializable> |
deserialize(FileInputStream is,
ClassLoader classLoader)
Deserializes object stored in the byte array.
|
static <T extends Serializable> |
deserialize(GZIPInputStream is,
ClassLoader classLoader)
Deserializes object stored in the byte array.
|
static byte[] |
serialize(Serializable object)
Serializes object.
|
public static byte[] serialize(Serializable object)
object - the object, may be null.null if null
object was given.public static <T extends Serializable> T deserialize(byte[] bytes)
T - bytes - bytes to deserialize, may be null.null if null
byte array was given.public static <T extends Serializable> T deserialize(ByteArrayInputStream is, ClassLoader classLoader)
T - is - input stream deserialize, may NOT be null.classLoader - null if null
byte array was given.public static <T extends Serializable> T deserialize(FileInputStream is, ClassLoader classLoader)
T - is - input stream deserialize, may NOT be null.classLoader - null if null
byte array was given.public static <T extends Serializable> T deserialize(GZIPInputStream is, ClassLoader classLoader)
T - is - input stream deserialize, may NOT be null.classLoader - null if null
byte array was given.Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.