Class AutoFlushingObjectWriter

    • Constructor Detail

      • AutoFlushingObjectWriter

        public AutoFlushingObjectWriter​(ObjectOutputStream objectOutputStream,
                                        int resetFrequency)
        Creates a new instance for the given ObjectOutputStream.
        objectOutputStream - the stream to write to
        resetFrequency - the frequency with which the given stream will be automatically reset to prevent a memory leak
    • Method Detail

      • write

        public void write​(Object object)
                   throws IOException
        Description copied from interface: ObjectWriter
        Writes an object to an output.
        Specified by:
        write in interface ObjectWriter
        object - the Object to write
        IOException - in case input/output fails, details are defined by the implementation