public final class Serialization extends Object
| Constructor and Description |
|---|
Serialization() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
deserialize(byte[] buf)
Deserialize an object from a byte array
|
static byte[] |
serialize(Object obj)
Serialize the object into a byte array.
|
public static byte[] serialize(Object obj) throws IOException
IOExceptionpublic static Object deserialize(byte[] buf) throws ClassNotFoundException, IOException
ClassNotFoundExceptionIOExceptionCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.