public class ExternalizableParseObject<T extends ParseObject>
extends java.lang.Object
implements com.codename1.io.Externalizable
ParseObject
class to make it
externalizable.Constructor and Description |
---|
ExternalizableParseObject() |
ExternalizableParseObject(T parseObject) |
Modifier and Type | Method and Description |
---|---|
void |
externalize(java.io.DataOutputStream out)
Allows us to store an object state, this method must be implemented
in order to save the state of an object
|
static java.lang.String |
getClassName() |
java.lang.String |
getObjectId()
The object id must be unique, it is used to identify the object when loaded
even when it is obfuscated.
|
T |
getParseObject() |
int |
getVersion()
Returns the version for the current persistance code, the version will be
pased to internalized thus allowing the internalize method to recognize
classes persisted in older revisions
|
void |
internalize(int version,
java.io.DataInputStream in)
Loads the object from the input stream and allows deserialization
|
public ExternalizableParseObject()
public ExternalizableParseObject(T parseObject)
public static java.lang.String getClassName()
public T getParseObject()
Date
wrapped by this object.public int getVersion()
com.codename1.io.Externalizable
getVersion
in interface com.codename1.io.Externalizable
Externalizable
public void externalize(java.io.DataOutputStream out) throws java.io.IOException
com.codename1.io.Externalizable
externalize
in interface com.codename1.io.Externalizable
out
- the stream into which the object must be serializedjava.io.IOException
- the method may throw an exceptionExternalizable
public void internalize(int version, java.io.DataInputStream in) throws java.io.IOException
com.codename1.io.Externalizable
internalize
in interface com.codename1.io.Externalizable
version
- the version the class returned during the externalization processsin
- the input stream used to load the classjava.io.IOException
- the method may throw an exceptionExternalizable
public java.lang.String getObjectId()
com.codename1.io.Externalizable
getObjectId
in interface com.codename1.io.Externalizable
Externalizable