You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Niall Pemberton (JIRA)" <ji...@apache.org> on 2010/09/29 03:31:33 UTC

[jira] Resolved: (IO-197) BoundedInputStream

     [ https://issues.apache.org/jira/browse/IO-197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niall Pemberton resolved IO-197.
--------------------------------

      Assignee: Niall Pemberton
    Resolution: Fixed

I copied the BoundedInputStream from Apache JackRabbit:

    http://svn.apache.org/viewvc?view=revision&revision=1002430

I removed the int size limitation:

    http://svn.apache.org/viewvc?view=revision&revision=1002432

..and added a test case

    http://svn.apache.org/viewvc?view=revision&revision=1002440

> BoundedInputStream
> ------------------
>
>                 Key: IO-197
>                 URL: https://issues.apache.org/jira/browse/IO-197
>             Project: Commons IO
>          Issue Type: New Feature
>          Components: Streams/Writers
>            Reporter: Emmanuel Bourg
>            Assignee: Niall Pemberton
>            Priority: Minor
>             Fix For: 2.0
>
>
> Apache Jackrabbit has an interesting InputStream implementation that reads up to a specified amount of bytes from an underlying stream, and then acts as if the end of the stream was reached:
> http://svn.apache.org/repos/asf/jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/io/BoundedInputStream.java
> Similar classes are also found in other projects:
> http://svn.mucommander.com/cgi-bin/viewvc.cgi/trunk/source/com/mucommander/io/BoundedInputStream.java?content-type=text%2Fplain&view=co
> https://www.sunspotworld.com/docs/Purple/javadoc/com/sun/spot/peripheral/BoundedInputStream.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.