public class Serializer
extends java.lang.Object
Constructor and Description |
---|
Serializer() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
deserializeFromByteArray(byte[] bytes)
Deserialize a single object from a byte array.
|
static <T> byte[] |
serializeToByteArray(T object)
Serialize a single object to a byte array.
|
public static <T> byte[] serializeToByteArray(T object)
T
- the type of objectobject
- to serializedeserializeFromByteArray(byte[])
public static <T> T deserializeFromByteArray(byte[] bytes)
T
- the type of the objectbytes
- to deserializeserializeToByteArray(Object)