org.sf.jlaunchpad.util
Class SerializableUtil

java.lang.Object
  extended by org.sf.jlaunchpad.util.SerializableUtil

public class SerializableUtil
extends java.lang.Object

This class contains convenient methods for serializing/deserializing objects.

Version:
1.0 12/16/2006
Author:
Alexander Shvets

Constructor Summary
SerializableUtil()
           
 
Method Summary
static java.lang.Object deserialize(byte[] bytes)
          Deserializes the object.
static byte[] serialize(java.lang.Object object)
          Serializes the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializableUtil

public SerializableUtil()
Method Detail

serialize

public static byte[] serialize(java.lang.Object object)
                        throws java.io.IOException
Serializes the object.

Parameters:
object - the object to be serialized
Returns:
object in form ob array of bytes
Throws:
java.io.IOException - exception

deserialize

public static java.lang.Object deserialize(byte[] bytes)
                                    throws java.io.IOException,
                                           java.lang.ClassNotFoundException
Deserializes the object.

Parameters:
bytes - object in form ob array of bytes
Returns:
the deserialized object
Throws:
java.io.IOException - exception
java.lang.ClassNotFoundException - exception


Copyright © 2007-2008 Dream Programs Inc.. All Rights Reserved.