lumis.portal.serialization
Interface ISerializer

Package class diagram package ISerializer

public interface ISerializer

Interface for an object serializer.

Since:
5.0.0
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
<T> T
fromInputStream(Class<T> objectClass, String alias, InputStream inputStream)
          Deserializes an object from an input stream.
 void toOutputStream(Object o, OutputStream outputStream, String alias)
          Serializes an object to an output stream.
 

Method Detail

toOutputStream

void toOutputStream(Object o,
                    OutputStream outputStream,
                    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(Class<T> objectClass,
                      String alias,
                      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


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.