Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2E50A7752 for ; Mon, 7 Nov 2011 16:41:15 +0000 (UTC) Received: (qmail 54050 invoked by uid 500); 7 Nov 2011 16:41:14 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 53994 invoked by uid 500); 7 Nov 2011 16:41:14 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 53986 invoked by uid 99); 7 Nov 2011 16:41:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Nov 2011 16:41:14 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Nov 2011 16:41:12 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 960B039F6E for ; Mon, 7 Nov 2011 16:40:51 +0000 (UTC) Date: Mon, 7 Nov 2011 16:40:51 +0000 (UTC) From: "Stefan Bodewig (Resolved) (JIRA)" To: issues@commons.apache.org Message-ID: <1610875426.7068.1320684051615.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <69684816.26.1320422151876.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (COMPRESS-161) bzip2 decompression terminates after 900000 bytes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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