Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
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 © 2000–2016 AO Industries, Inc.. All rights reserved.