public interface Serialization
| Modifier and Type | Method and Description |
|---|---|
boolean |
isThreadSafe()
Returns
true if this Serialization is thread-safe. |
<T> Deserializer<T> |
newDeserializer(InputStream in,
Class<T> type)
Create a new
Deserializer that deserializes objects of type T |
<T> Serializer<T> |
newSerializer(OutputStream out,
Class<T> type)
Create a new
Serializer that serializes objects of type T |
<T> Serializer<T> newSerializer(OutputStream out, Class<T> type) throws IOException
Serializer that serializes objects of type Tout - An OutputStream to write totype - The Class of the objects to writeSerializerIOException<T> Deserializer<T> newDeserializer(InputStream in, Class<T> type) throws IOException
Deserializer that deserializes objects of type Tin - An InputStream to read fromtype - The Class of the objects to readDeserializerIOExceptionboolean isThreadSafe()
true if this Serialization is thread-safe.
If this method returns false then this object must also implement
the Locked interface.Copyright © 2014. All rights reserved.