@Deprecated public class JSONPersistenceSession extends Object implements IPersistenceSession
| Constructor and Description |
|---|
JSONPersistenceSession(Class<?> rootClass)
Deprecated.
|
JSONPersistenceSession(Class<?> rootClass,
InputStream inStream)
Deprecated.
|
JSONPersistenceSession(Class<?> rootClass,
OutputStream outStream)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
convert(Object object,
Class<T> expectedClass)
Deprecated.
Converts a given object to an expected type.
|
Object |
deserialize()
Deprecated.
Deserializes an object from the session input stream.
|
void |
end()
Deprecated.
Ends serialization or deserialization.
|
boolean |
isActive()
Deprecated.
Returns the current session status.
|
void |
serialize(Object obj)
Deprecated.
Serializes a given object to the session output stream.
|
void |
start(InputStream inStream)
Deprecated.
Starts deserialization.
|
void |
start(OutputStream outStream)
Deprecated.
Starts serialization.
|
public static final String MIME_TYPE
public JSONPersistenceSession(Class<?> rootClass)
public JSONPersistenceSession(Class<?> rootClass, OutputStream outStream)
public JSONPersistenceSession(Class<?> rootClass, InputStream inStream)
public <T> T convert(Object object, Class<T> expectedClass)
IPersistenceSessionconvert in interface IPersistenceSessionobject - the given object to be converted.expectedClass - new class of the given object.public Object deserialize()
IPersistenceSessiondeserialize in interface IPersistenceSessionpublic void end()
IPersistenceSessionend in interface IPersistenceSessionpublic void serialize(Object obj)
IPersistenceSessionserialize in interface IPersistenceSessionobj - the given object to be serialized.public void start(OutputStream outStream)
IPersistenceSessionstart in interface IPersistenceSessionoutStream - output stream to serialize to.public void start(InputStream inStream)
IPersistenceSessionstart in interface IPersistenceSessioninStream - input stream to deserialize from.public boolean isActive()
IPersistenceSessionisActive in interface IPersistenceSessionCopyright © 2019. All rights reserved.