public class Serializer
extends java.lang.Object
Constructor and Description |
---|
Serializer() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
deserialize(byte[] b) |
static <T> T |
deserialize(byte[] b,
java.lang.Class<T> clazz) |
static java.util.Map<java.lang.String,java.lang.String> |
deserializeStringMap(byte[] buf) |
static byte[] |
serialize(java.lang.Object obj) |
static <T> T |
serializeDeserialize(T obj) |
static byte[] |
serializeStringMap(java.util.Map<java.lang.String,java.lang.String> m) |
public static byte[] serialize(java.lang.Object obj) throws java.io.IOException
java.io.IOException
public static java.lang.Object deserialize(byte[] b) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public static <T> T deserialize(byte[] b, java.lang.Class<T> clazz) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public static <T> T serializeDeserialize(T obj) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public static byte[] serializeStringMap(java.util.Map<java.lang.String,java.lang.String> m) throws java.io.IOException
java.io.IOException
public static java.util.Map<java.lang.String,java.lang.String> deserializeStringMap(byte[] buf) throws java.lang.ClassNotFoundException, java.io.IOException
java.lang.ClassNotFoundException
java.io.IOException