[ 
https://issues.apache.org/jira/browse/SANDBOX-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12676230#action_12676230
 ] 

Jukka Zitting commented on SANDBOX-286:
---------------------------------------

I don't see why you need to call the ready() method, especially since 
readLine() may block regardless of what ready() says. Why not the following?

{code}
String testString = reader.readLine();
while (testString != null) {
    processLine(testString);
    testString = reader.readLine();
}
{code}

It would be nice to support non-blocking reads from compressed streams, but 
that's more of a new feature than a bug.

> BZip2CompressorInputStream doesn't work if wrapped into InputStreamReader
> -------------------------------------------------------------------------
>
>                 Key: SANDBOX-286
>                 URL: https://issues.apache.org/jira/browse/SANDBOX-286
>             Project: Commons Sandbox
>          Issue Type: Bug
>          Components: Compress
>    Affects Versions: Nightly Builds
>         Environment: Unix
>            Reporter: Ingo Rockel
>
> The BZip2CompressorInputStream doesn't work if wrapped into InputStreamReader 
> because it doesn't implement "public int available()" from InputStream.
> Adding the following method to BZip2CompressorInputStream fixes the problem:
>     public int available() throws IOException {
>         return(in.available());
>     }

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

Reply via email to