Nope, I did not miss it. DeferredFileOutputStream writes everything to
disk once it reaches the treshold, so it basically frees the allocated
memory buffers. Mine keeps the allocated buffers and creates a
SequenceInputStream over allocated buffers + disk file

Kristian


2015-01-10 23:14 GMT+01:00 Jörg Schaible <joerg.schai...@gmx.de>:
> Kristian Rosenvold wrote:
>
> [snip]
>
>> Inside commons-compress this target is always a
>> tempfile. Inside plexus-archiver OffloadingOutputStream (a
>> commons-compress ScatterOutputStream) is used. This writes to some
>> pretty huge memory buffers, but when a certain treshold is reached it
>> offloads to tempfile while retaining what was initially written to
>> memory. I'll be putting this offloading stream class in commons-io
>> fairly soon.
>
> commons-io has DeferredFileOutputStream with such a functionality, did you
> miss it?
>
> Cheers,
> Jörg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> For additional commands, e-mail: dev-h...@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to