public class AutoFlushingObjectWriter extends Object implements ObjectWriter
ObjectOutputStream immediately after calling
it's ObjectOutputStream.writeObject(Object) method.| Constructor and Description |
|---|
AutoFlushingObjectWriter(ObjectOutputStream objectOutputStream,
int resetFrequency)
Creates a new instance for the given
ObjectOutputStream. |
public AutoFlushingObjectWriter(ObjectOutputStream objectOutputStream, int resetFrequency)
ObjectOutputStream.objectOutputStream - the stream to write toresetFrequency - the frequency with which the given stream will be
automatically reset to prevent a memory leakpublic void write(Object object) throws IOException
ObjectWriterwrite in interface ObjectWriterobject - the Object to writeIOException - in case input/output fails, details are defined by the implementationCopyright © 2005–2021 QOS.ch. All rights reserved.