|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sf.jlaunchpad.util.SerializableUtil
public class SerializableUtil
This class contains convenient methods for serializing/deserializing objects.
| Constructor Summary | |
|---|---|
SerializableUtil()
|
|
| Method Summary | |
|---|---|
static java.lang.Object |
deserialize(byte[] bytes)
Deserializes the object. |
static byte[] |
serialize(java.lang.Object object)
Serializes the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SerializableUtil()
| Method Detail |
|---|
public static byte[] serialize(java.lang.Object object)
throws java.io.IOException
object - the object to be serialized
java.io.IOException - exception
public static java.lang.Object deserialize(byte[] bytes)
throws java.io.IOException,
java.lang.ClassNotFoundException
bytes - object in form ob array of bytes
java.io.IOException - exception
java.lang.ClassNotFoundException - exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||