|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--springs.util.SerializationManager
A class to manage the serialization of objects.
Constructor Summary | |
SerializationManager()
|
Method Summary | |
static byte[] |
convertToBytes(java.lang.Object object)
Convert the given object into its bytes. |
static java.lang.Object |
convertToObject(byte[] bytes)
Convert the given bytes into an object. |
static java.lang.Object |
convertToObject(byte[] bytes,
java.lang.String codebase)
Convert the given bytes into an object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SerializationManager()
Method Detail |
public static java.lang.Object convertToObject(byte[] bytes) throws java.io.IOException, java.lang.ClassNotFoundException
bytes
- the bytes that compose the object.
java.io.IOException
- if the conversion fails.
java.lang.ClassNotFoundException
- if the class of the object cannot be loaded.Object
,
IOException
public static java.lang.Object convertToObject(byte[] bytes, java.lang.String codebase) throws java.io.IOException, java.lang.ClassNotFoundException
bytes
- the bytes that compose the object.codebase
- a codebase to use to search for necessary classes (in case they are not
locally available).
java.io.IOException
- if the conversion fails.
java.lang.ClassNotFoundException
- if the class of the object cannot be loaded.Object
,
String
,
IOException
public static byte[] convertToBytes(java.lang.Object object) throws java.io.IOException
object
- the object.
java.io.IOException
- if the conversion fails.Object
,
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |