jdbm.helper
Class Serialization
java.lang.Object
jdbm.helper.Serialization
public final class Serialization
- extends Object
Serialization-related utility methods.
- Author:
- Alex Boisvert
|
Method Summary |
static Object |
deserialize(byte[] buf)
Deserialize an object from a byte array |
static byte[] |
serialize(Object obj)
Serialize the object into a byte array. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Serialization
public Serialization()
serialize
public static byte[] serialize(Object obj)
throws IOException
- Serialize the object into a byte array.
- Throws:
IOException
deserialize
public static Object deserialize(byte[] buf)
throws ClassNotFoundException,
IOException
- Deserialize an object from a byte array
- Throws:
ClassNotFoundException
IOException
Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.