commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Colebourne (JIRA)" <>
Subject [jira] Updated: (IO-92) Add DeferredPeriodicOutputStream
Date Sat, 07 Oct 2006 13:56:20 GMT
     [ ]

Stephen Colebourne updated IO-92:

              Summary: Add DeferredPeriodicOutputStream  (was: new ThresholdingOutputStream
           Issue Type: New Feature  (was: Improvement)
        Fix Version/s: 1.4
    Affects Version/s:     (was: 1.2)

> Add DeferredPeriodicOutputStream
> --------------------------------
>                 Key: IO-92
>                 URL:
>             Project: Commons IO
>          Issue Type: New Feature
>          Components: Streams/Writers
>         Environment: Windows XP SP2, jdk 1.5
>            Reporter: Michele Mazzucco
>             Fix For: 1.4
>         Attachments:,
> I've extended the ThresholdingOutputStream class with a new class which
> behaves different from DeferredFileOutputStream:
> - when the stream is closed, the content stored in memory is *always* flushed to disk
(in DeferredFileOutputStream, instead, if the treshold
> is not reached data is lost)
> - DeferredFileOutputStream maintains data in memory only until the treshold value has
been reached, then it immediately writes every byte
> to disk. This new implementation, instead, caches treshold bytes in memory, and every
time that value is reached (that is, treshold, 2 * threshold, etc), it flushes data to disk.
In other words it acts as a cache.
> - It implements the interface, that is, it provides utility methods
to write all primitive types (e.g. short, byte, char, int, float, long, double and String
in different formats)

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message