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

Gary D. Gregory commented on IO-510:
------------------------------------

The work as I see it:
 * Don't reinvent the wheel, per the Spark link.
 * Bring in 
[https://spark.apache.org/docs/3.0.1/api/java/org/apache/spark/io/ReadAheadInputStream.html]
 * Bring in the matching tests or write them if needed
 * Do the above in a PR

> 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)

Reply via email to