com.cedarsoft.utils.serialization
Interface ExtendedSerializer<T>

Type Parameters:
T - the type
All Superinterfaces:
Serializer<T,Lookup>
All Known Implementing Classes:
AbstractSerializer

public interface ExtendedSerializer<T>
extends Serializer<T,Lookup>

Serializer


Method Summary
 T deserialize(java.io.InputStream in)
          Deserializes the object
 byte[] serialize(T object)
          Serializes the given object
 void serialize(T object, java.io.OutputStream out)
          Serializes the object to the output stream
 
Methods inherited from interface com.cedarsoft.utils.serialization.Serializer
deserialize, serialize
 

Method Detail

serialize

@NotNull
byte[] serialize(@NotNull
                         T object)
                 throws java.io.IOException
Serializes the given object

Parameters:
object - the object
Returns:
the serialized object
Throws:
java.io.IOException

serialize

void serialize(@NotNull
               T object,
               @NotNull
               java.io.OutputStream out)
               throws java.io.IOException
Serializes the object to the output stream

Parameters:
object - the object
out - the out stream
Throws:
java.io.IOException

deserialize

@NotNull
T deserialize(@NotNull
                      java.io.InputStream in)
              throws java.io.IOException
Deserializes the object

Parameters:
in - the input stream
Returns:
the deserialized object
Throws:
java.io.IOException


Copyright © 2009 cedarsoft GmbH. All Rights Reserved.