Serializer and Deserializer
itself, so can also be passed into such more specific callback methods.
| Modifier and Type | Field and Description |
|---|---|
| private final Deserializer | |
| private final Serializer |
| Access | Constructor and Description |
|---|---|
| public | SerializationDelegate(ClassLoader classLoader)
Create a |
| public | SerializationDelegate(Serializer<Object>
the serializer, Deserializer<Object> Serializer to use (never null)the deserializer)Deserializer to use (never null)Create a |
| Modifier and Type | Method and Description |
|---|---|
| public Object | deserialize(InputStream
the input stream inputStream)Implements org. Read (assemble) an object of type T from the given InputStream. |
| public void | serialize(Object
the object to serialize object, OutputStream the output stream outputStream)Implements org. Write an object of type T to the given OutputStream. |
| deserializer | back to summary |
|---|---|
| private final Deserializer<Object> deserializer | |
| serializer | back to summary |
|---|---|
| private final Serializer<Object> serializer | |
| SerializationDelegate | back to summary |
|---|---|
| public SerializationDelegate(ClassLoader classLoader) Create a | |
| SerializationDelegate | back to summary |
|---|---|
| public SerializationDelegate(Serializer<Object> serializer, Deserializer<Object> deserializer) Create a
| |
| deserialize | back to summary |
|---|---|
| public Object deserialize(InputStream inputStream) throws IOException Implements org. Doc from org. Read (assemble) an object of type T from the given InputStream. Note Implementations should not close the given InputStream (or any decorators of that InputStream) but rather leave this up to the caller.
| |
| serialize | back to summary |
|---|---|
| public void serialize(Object object, OutputStream outputStream) throws IOException Implements org. Doc from org. Write an object of type T to the given OutputStream. Note Implementations should not close the given OutputStream (or any decorators of that OutputStream) but rather leave this up to the caller.
| |