jxl.util
Class SerializationUtils

java.lang.Object
  extended by jxl.util.SerializationUtils

public class SerializationUtils
extends java.lang.Object

Author:
alex

Method Summary
static java.lang.Object fromBytesString(java.lang.String bytes)
           
static java.lang.Object testSerialization(java.lang.Object o)
           
static byte[] toBytes(java.lang.Object o)
           
static java.lang.String toBytesString(java.lang.Object o)
           
static java.lang.Object toObject(byte[] bytes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toBytes

public static byte[] toBytes(java.lang.Object o)
                      throws java.io.IOException
Throws:
java.io.IOException

toObject

public static java.lang.Object toObject(byte[] bytes)
                                 throws java.io.IOException,
                                        java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

testSerialization

public static java.lang.Object testSerialization(java.lang.Object o)
                                          throws java.io.IOException,
                                                 java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

toBytesString

public static java.lang.String toBytesString(java.lang.Object o)
                                      throws java.io.IOException
Throws:
java.io.IOException

fromBytesString

public static java.lang.Object fromBytesString(java.lang.String bytes)
                                        throws java.io.IOException,
                                               java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException