[ https://issues.apache.org/jira/browse/COMPRESS-161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Bodewig resolved COMPRESS-161. ------------------------------------- Resolution: Duplicate Fix Version/s: (was: 1.3) 1.4 This is COMPRESS-146 which has just been fixed. In order to make it work you must use the new two-arg constructor of the stream and pass in true as second argument. > bzip2 decompression terminates after 900000 bytes > ------------------------------------------------- > > Key: COMPRESS-161 > URL: https://issues.apache.org/jira/browse/COMPRESS-161 > Project: Commons Compress > Issue Type: Bug > Components: Compressors > Affects Versions: 1.3 > Environment: Windows7 64bit JDK7u1,2 > Reporter: Hans horn > Priority: Critical > Fix For: 1.4 > > Attachments: INT1_aminey.inp.bz2 > > > bzip2 decompression terminates (w/o error) after 900000 bytes > try { > InputStream iin = new BZip2CompressorInputStream(new > FileInputStream(bzip2 compressed file that was uncompressed > 900000 bytes in > size); > int data = iin.read(); > while (data != -1) { > System.out.print((char) data); ++nBytes; > data = iin.read(); > } > } catch (IOException iox) { /**/ } > System.out.println("#Bytes read " + nBytes); > prints: #Bytes read 900000 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira