You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/11/08 05:46:58 UTC

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

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

ASF GitHub Bot commented on IO-510:
-----------------------------------

GitHub user yairzaslavsky opened a pull request:

    https://github.com/apache/commons-io/pull/27

    [IO-510] Adding ReadAHeadInputStream

    Adding ReadAHeadInputStream which acts
    similar to BufferedInputStream only it uses
    a thread to fill in the buffer with reads
    from the internal stream

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/yairzaslavsky/commons-io common_io_510_lookahead_input_stream

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/commons-io/pull/27.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #27
    
----
commit ed7de3295bc71354f6e68a21a5dd04d55631617f
Author: Yair Zaslavsky <yz...@gmail.com>
Date:   2016-11-08T05:42:03Z

    [IO-510] Adding ReadAHeadInputStream
    
    Adding ReadAHeadInputStream which acts
    similar to BufferedInputStream only it uses
    a thread to fill in the buffer with reads
    from the internal stream

----


> ReadAheadInputStream
> --------------------
>
>                 Key: IO-510
>                 URL: https://issues.apache.org/jira/browse/IO-510
>             Project: Commons IO
>          Issue Type: New Feature
>          Components: Streams/Writers
>            Reporter: BELUGA BEHR
>
> 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
(v6.3.4#6332)