|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jaulp.io.SerializedObjectUtils
public final class SerializedObjectUtils
Helper-class for make exact copys from serialized objects.
| Method Summary | |
|---|---|
static byte[] |
convert2ByteArray(java.lang.Object object)
The Method convert2ByteArray() serialize an Object to byte array. |
static java.lang.Object |
convert2Object(byte[] byteArray)
The Method convert2Object() converts the bytearray into an Object. |
static java.lang.Object |
copySerializedObject(java.lang.Object orig)
Copys the given Object and returns the copy from the object or null if the object can't be serialized. |
static java.lang.Object |
readSerializedObjectFromFile(java.io.File file)
Reads the object from the given file. |
static boolean |
writeSerializedObjectToFile(java.lang.Object obj,
java.io.File file)
Writes the given object to the given File. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static byte[] convert2ByteArray(java.lang.Object object)
object - The Object to convert into a bytearray.
public static java.lang.Object convert2Object(byte[] byteArray)
byteArray - The bytearray to convert into an Object.
public static java.lang.Object copySerializedObject(java.lang.Object orig)
orig - The object to copy.
public static java.lang.Object readSerializedObjectFromFile(java.io.File file)
file - In that file is the object saved.
public static boolean writeSerializedObjectToFile(java.lang.Object obj,
java.io.File file)
obj - The object to write to the File.file - In this file will be the object saved.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||