public class ObjectSerializer<E> extends BufferedSerializer<E>
Serializable objects.
This class is not thread safe.| Constructor and Description |
|---|
ObjectSerializer(Class<E> type) |
| Modifier and Type | Method and Description |
|---|---|
E |
deserialize(InputStream in)
Restores an object from an
InputStream. |
protected void |
serialize(E value,
ByteArrayOutputStream buffer) |
getSerializedSize, isFixedSerializedSize, serializeprotected void serialize(E value, ByteArrayOutputStream buffer) throws IOException
serialize in class BufferedSerializer<E>IOExceptionpublic E deserialize(InputStream in) throws IOException
SerializerInputStream.IOExceptionCopyright © 2016. All rights reserved.