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
IOExceptionpublic static Object deserialize(String str) throws IOException
IOExceptionpublic static String encodeBytes(byte[] bytes) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static byte[] decodeBytes(String str) throws UnsupportedEncodingException
UnsupportedEncodingExceptionCopyright © 2007-2017 The Apache Software Foundation