@Deprecated public interface IPersistenceSession
| Modifier and Type | Method and Description |
|---|---|
<T> T |
convert(Object obj,
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.
|
void start(OutputStream outStream)
outStream - output stream to serialize to.void start(InputStream inStream)
inStream - input stream to deserialize from.void end()
boolean isActive()
void serialize(Object obj)
obj - the given object to be serialized.Object deserialize()
<T> T convert(Object obj, Class<T> expectedClass)
obj - the given object to be converted.expectedClass - new class of the given object.Copyright © 2019. All rights reserved.