planetj.dataengine
Class SerializationUtility

java.lang.Object
  extended byplanetj.dataengine.SerializationUtility

public class SerializationUtility
extends java.lang.Object

A Utility that has the capability to serialize a row collection Creation date: (2/13/2002 1:39:20 PM)


Constructor Summary
SerializationUtility()
           
 
Method Summary
static RowCollection deserialize(java.lang.String pFileName)
          Deserializes the RowCollection located in the specified file.
static void serializeRCToApplet(RowCollection pRowCollection, HttpServletResponse pResponse)
          Serializes a RowCollection to the specified HTTP Response.
static void serializeRCToBrowser(RowCollection pRowCollection, HttpServletResponse pResponse)
          Serializes a RowCollection to the specified HTTP Response.
static void serializeRCToFile(RowCollection pRowCollection, java.lang.String pFileName)
          Serializes a RowCollection to the specified file.
static void serializeToFile(java.lang.Object o, java.lang.String fileName)
          Serializes the given Object to a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializationUtility

public SerializationUtility()
Method Detail

deserialize

public static RowCollection deserialize(java.lang.String pFileName)
                                 throws java.lang.Exception
Deserializes the RowCollection located in the specified file.

Parameters:
pFileName - java.lang.String
Returns:
planetj.database.RowCollection
Throws:
java.lang.Exception

serializeRCToApplet

public static void serializeRCToApplet(RowCollection pRowCollection,
                                       HttpServletResponse pResponse)
                                throws java.lang.Exception
Serializes a RowCollection to the specified HTTP Response.

Parameters:
pRowCollection - planetj.database.RowCollection
Throws:
java.lang.Exception

serializeRCToBrowser

public static void serializeRCToBrowser(RowCollection pRowCollection,
                                        HttpServletResponse pResponse)
                                 throws java.lang.Exception
Serializes a RowCollection to the specified HTTP Response.

Parameters:
pRowCollection - planetj.database.RowCollection
Throws:
java.lang.Exception

serializeRCToFile

public static void serializeRCToFile(RowCollection pRowCollection,
                                     java.lang.String pFileName)
                              throws java.lang.Exception
Serializes a RowCollection to the specified file.

Parameters:
pRowCollection - planetj.database.RowCollection
pFileName - java.lang.String
Throws:
java.lang.Exception

serializeToFile

public static void serializeToFile(java.lang.Object o,
                                   java.lang.String fileName)
                            throws java.lang.Exception
Serializes the given Object to a file.

Parameters:
o - Object to serialize
fileName - name of serialized file to create
Throws:
java.lang.Exception