public class AutoFlushingObjectWriter extends java.lang.Object implements ObjectWriter
ObjectOutputStream
immediately after calling
it's ObjectOutputStream.writeObject(Object)
method.Constructor and Description |
---|
AutoFlushingObjectWriter(java.io.ObjectOutputStream objectOutputStream,
int resetFrequency)
Creates a new instance for the given
ObjectOutputStream . |
Modifier and Type | Method and Description |
---|---|
void |
write(java.lang.Object object)
Writes an object to an output.
|
public AutoFlushingObjectWriter(java.io.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(java.lang.Object object) throws java.io.IOException
ObjectWriter
write
in interface ObjectWriter
object
- the Object
to writejava.io.IOException
- in case input/output fails, details are defined by the implementationCopyright © 2010 - 2020 Adobe. All Rights Reserved