Class BufferedSerializer<E>

java.lang.Object
com.aoapps.persistence.BufferedSerializer<E>
All Implemented Interfaces:
Serializer<E>
Direct Known Subclasses:
ObjectSerializer

public abstract class BufferedSerializer<E> extends Object implements Serializer<E>
Serializes any objects by using a buffer between the Serializer.getSerializedSize(java.lang.Object) and Serializer.serialize(java.lang.Object, java.io.OutputStream) calls. This avoids serializing the object twice in the common sequence of getSerializedSize followed by serialize. This and all subclasses are not fixed size.

This class is not thread safe.

Author:
AO Industries, Inc.