public class ObjectParser
extends java.lang.Object
java.io.Serializable
.
The serialization process involves converting the object into Base64
format, using
the Base64
parser.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SERIALIZED
Defines serialized object
|
Constructor and Description |
---|
ObjectParser()
Creates a new instance of ObjectParser
|
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
parse(java.lang.String objStr)
Parse the String-based description back into the object.
|
static java.lang.String |
serialize(java.lang.Object nextObj)
Convert the object into a serialized String-based description.
|
public static final java.lang.String SERIALIZED
public static java.lang.Object parse(java.lang.String objStr) throws java.lang.Exception
objStr
- a serialized description of the object.objStr
parameter if this is not
a recognised Base64 encoded object description.java.lang.Exception
- any error.public static java.lang.String serialize(java.lang.Object nextObj)
nextObj
- the object to convert.