jdbm.helper
Class Serialization

java.lang.Object
  extended by jdbm.helper.Serialization

public final class Serialization
extends java.lang.Object

Serialization-related utility methods.

Version:
$Id: Serialization.java,v 1.1 2002/05/31 06:33:20 boisvert Exp $
Author:
Alex Boisvert

Constructor Summary
Serialization()
           
 
Method Summary
static java.lang.Object deserialize(byte[] buf)
          Deserialize an object from a byte array
static byte[] serialize(java.lang.Object obj)
          Serialize the object into a byte array.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Serialization

public Serialization()
Method Detail

serialize

public static byte[] serialize(java.lang.Object obj)
                        throws java.io.IOException
Serialize the object into a byte array.

Throws:
java.io.IOException

deserialize

public static java.lang.Object deserialize(byte[] buf)
                                    throws java.lang.ClassNotFoundException,
                                           java.io.IOException
Deserialize an object from a byte array

Throws:
java.lang.ClassNotFoundException
java.io.IOException


Cees de Groot (C) 2000. All rights reserved http://jdbm.sourceforge.net