You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Stefan Bodewig (JIRA)" <ji...@apache.org> on 2009/02/23 17:38:03 UTC
[jira] Resolved: (SANDBOX-286) BZip2CompressorInputStream doesn't
work if wrapped into InputStreamReader
[ https://issues.apache.org/jira/browse/SANDBOX-286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Bodewig resolved SANDBOX-286.
------------------------------------
Resolution: Won't Fix
No, bzip2 really is block oriented, so it may require reading more data than is actually available from the underlying stream.
> 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.