public class ObjectSerializer extends Object
Constructor and Description |
---|
ObjectSerializer() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decodeBytes(String str) |
static Object |
deserialize(String str) |
static String |
encodeBytes(byte[] bytes) |
static String |
serialize(Serializable obj) |
public static String serialize(Serializable obj) throws IOException
IOException
public static Object deserialize(String str) throws IOException
IOException
public static String encodeBytes(byte[] bytes) throws UnsupportedEncodingException
UnsupportedEncodingException
public static byte[] decodeBytes(String str) throws UnsupportedEncodingException
UnsupportedEncodingException
Copyright © 2007-2012 The Apache Software Foundation