Package lumis.portal.serialization
Interface ISerializer
-
public interface ISerializer
Interface for an object serializer.- Since:
- 5.0.0
- Version:
- $Revision$ $Date$
- See Also:
ISerializationManager2#serializeObject(Object, lumis.portal.serialization.persistency.IDirectory, String, String, Serializer)
,ISerializationManager2#deserializeObject(Class, lumis.portal.serialization.persistency.IDirectory, String, String, Serializer, boolean)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
fromInputStream(java.lang.Class<T> objectClass, java.lang.String alias, java.io.InputStream inputStream)
Deserializes an object from an input stream.void
toOutputStream(java.lang.Object o, java.io.OutputStream outputStream, java.lang.String alias)
Serializes an object to an output stream.
-
-
-
Method Detail
-
toOutputStream
void toOutputStream(java.lang.Object o, java.io.OutputStream outputStream, java.lang.String alias) throws SerializationException
Serializes an object to an output stream.- Parameters:
object
- the object.outputStream
- the output stream.alias
- the alias for the object.- Throws:
SerializationException
- if an error occurred during serialization.- Since:
- 5.0.0
-
fromInputStream
<T> T fromInputStream(java.lang.Class<T> objectClass, java.lang.String alias, java.io.InputStream inputStream) throws SerializationException
Deserializes an object from an input stream.- Type Parameters:
T
- the object type.- Parameters:
objectClass
- the object type class.alias
- the object alias.inputStream
- the input stream.- Returns:
- the deserialized object.
- Throws:
SerializationException
- if an error occurred during deserialization.- Since:
- 5.0.0
-
-