|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.io.Serializer
public final class Serializer
The serializer class is used for serializing and de-serializing objects in a unified way.
High level serialization components like the RmsStorage use this helper class for the actual serialization.
Copyright Enough Software 2006 - 2008
history
Mar 31, 2006 - rob creation
| Method Summary | |
|---|---|
static java.lang.Object |
deserialize(java.io.DataInputStream in)
Deserializes an object from the given stream. |
static void |
serialize(java.lang.Object object,
java.io.DataOutputStream out)
Serializes the specified object. |
static void |
serialize(java.lang.Object object,
java.io.DataOutputStream out,
boolean useObfuscation)
WARNING: Can only be used in JavaSE environments! Serializes the specified object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void serialize(java.lang.Object object,
java.io.DataOutputStream out)
throws java.io.IOException
object - the objectout - the stream into which the object should be serialized
java.io.IOException - when serialization data could not be written or when encountering an object that cannot be serializedfor deseralizing objects
public static void serialize(java.lang.Object object,
java.io.DataOutputStream out,
boolean useObfuscation)
throws java.io.IOException
object - the objectout - the stream into which the object should be serializeduseObfuscation - true when classnames are obfuscated
java.io.IOException - when serialization data could not be written or when encountering an object that cannot be serialized
public static java.lang.Object deserialize(java.io.DataInputStream in)
throws java.io.IOException
in - the data input stream, from which the object is deserialized
java.io.IOException - when serialization data could not be read or the Serializable class could not get instantiated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||