com.cedarsoft.serialization
Interface ExtendedSerializer<T,C>

Type Parameters:
T - the type
C - the type of the context
All Superinterfaces:
Serializer<T,C>

Deprecated.

@Deprecated
public interface ExtendedSerializer<T,C>
extends Serializer<T,C>

Serializer with several convenience methods.


Field Summary
 
Fields inherited from interface com.cedarsoft.serialization.Serializer
PI_TARGET_FORMAT
 
Method Summary
 T deserialize(java.io.InputStream in)
          Deprecated. 
 byte[] serialize(T object, C context)
          Deprecated. 
 void serialize(T object, java.io.OutputStream out)
          Deprecated. 
 
Methods inherited from interface com.cedarsoft.serialization.Serializer
deserialize, getFormatVersion, serialize
 

Method Detail

serialize

@Deprecated
@NotNull
byte[] serialize(@NotNull
                                    T object,
                                    @Nullable
                                    C context)
                 throws java.io.IOException
Deprecated. 

Serializes the given object

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

serialize

@Deprecated
void serialize(@NotNull
                          T object,
                          @NotNull
                          java.io.OutputStream out)
               throws java.io.IOException
Deprecated. 

Serializes the object to the output stream

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

deserialize

@Deprecated
@NotNull
T deserialize(@NotNull
                                 java.io.InputStream in)
              throws java.io.IOException
Deprecated. 

Deserializes the object

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


Copyright © 2009 cedarsoft GmbH. All Rights Reserved.