02/28/2005
 

com.epicentric.common
Class SerializationUtils

java.lang.Object
  |
  +--com.epicentric.common.SerializationUtils

Deprecated. as of version 4.5, to be removed in 8.0 or later. No replacement. This class was used extensively in earlier versions of the product in order to facilitate Object serialization; however, it is now generally considered poor practice to directly use object serialization in a portal environment. It is recommended to instead export the object in XML form or to use JDBC to persist the object to a database, whichever is more appropriate for the feature in question.

public class SerializationUtils
extends Object

Utilities for serializing and deserializing objects.


Constructor Summary
SerializationUtils()
          Deprecated.  
 
Method Summary
static Object getObjectFromData(byte[] byte_data)
          Deprecated.  
static Object getObjectFromData(byte[] byte_data, ClassLoader classLoader)
          Deprecated.  
static Object getObjectFromPath(String filePath)
          Deprecated. Given full path to .ser file, read and return the object
static byte[] getSerializedObjectData(Object object)
          Deprecated.  
static void writeObjectToPath(Serializable object, String filePath)
          Deprecated. Given a serializable object and a full file path, write the object out to the path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializationUtils

public SerializationUtils()
Deprecated. 
Method Detail

getSerializedObjectData

public static byte[] getSerializedObjectData(Object object)
Deprecated. 

getObjectFromData

public static Object getObjectFromData(byte[] byte_data)
Deprecated. 

getObjectFromData

public static Object getObjectFromData(byte[] byte_data,
                                       ClassLoader classLoader)
Deprecated. 

getObjectFromPath

public static Object getObjectFromPath(String filePath)
                                throws FileNotFoundException
Deprecated. 
Given full path to .ser file, read and return the object
Parameters:
path - to serialization file
Returns:
object

writeObjectToPath

public static void writeObjectToPath(Serializable object,
                                     String filePath)
                              throws IOException
Deprecated. 
Given a serializable object and a full file path, write the object out to the path. Any existing file at path will be overwritten.
Parameters:
object - to serialize
file - path

02/28/2005
 

Copyright and Trademark Notices