You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Avin E.M (Jira)" <ji...@apache.org> on 2020/10/21 22:57:00 UTC

[jira] [Commented] (IO-510) ReadAheadInputStream

    [ https://issues.apache.org/jira/browse/IO-510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17218646#comment-17218646 ] 

Avin E.M commented on IO-510:
-----------------------------

Is anyone currently working on this? I'd like to contribute a version of this since I couldn't find this in commons io and recently had to implement this by myself. This is definitely a very useful class for parallelizing stream read and processing in chunks.

> ReadAheadInputStream
> --------------------
>
>                 Key: IO-510
>                 URL: https://issues.apache.org/jira/browse/IO-510
>             Project: Commons IO
>          Issue Type: New Feature
>          Components: Streams/Writers
>            Reporter: David Mollitor
>            Priority: Major
>         Attachments: IO-510.1.patch, IO-510.2.patch
>
>
> Create a "ReadAheadInputStream".  Such a feature would essentially be a BufferedInputStream that spawns a thread for asynchronous reading.  The thread would continuously fill the buffer (if there was space) from the underlying InputStream.  Thread would wait if buffer was full.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)