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 79446180CE for ; Tue, 13 Oct 2015 03:56:05 +0000 (UTC) Received: (qmail 27190 invoked by uid 500); 13 Oct 2015 03:56:05 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 27091 invoked by uid 500); 13 Oct 2015 03:56:05 -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 27074 invoked by uid 99); 13 Oct 2015 03:56:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Oct 2015 03:56:05 +0000 Date: Tue, 13 Oct 2015 03:56:05 +0000 (UTC) From: "Stefan Bodewig (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (COMPRESS-325) Unable to uncompress bzip2 dbPedia files MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COMPRESS-325?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D14= 954329#comment-14954329 ]=20 Stefan Bodewig commented on COMPRESS-325: ----------------------------------------- I haven't tried to decompress your example, yet. If this is a case of conc= atenated streams (as COMPRESS-185 is), then you need to tell {{BZip2Compres= sorInputStream}} explicitly to concatenate the streams - i.e. use the two-a= rg constructor and {{true}} as its second argument. > Unable to uncompress bzip2 dbPedia files > ---------------------------------------- > > Key: COMPRESS-325 > URL: https://issues.apache.org/jira/browse/COMPRESS-325 > Project: Commons Compress > Issue Type: Bug > Affects Versions: 1.10 > Reporter: Fr=C3=A9d=C3=A9rik Bilhaut > > Sample code : > {code:java} > URL url =3D new URL("http://downloads.dbpedia.org/current/core-i18n/en/la= bels_en.nt.bz2"); > InputStream input =3D new BZip2CompressorInputStream(url.openConnection()= .getInputStream()); > BufferedReader reader =3D new BufferedReader(new InputStreamReader(input,= "US-ASCII")); > =09=09=09 > int count =3D 0; > for(String line =3D reader.readLine(); line !=3D null; line =3D reader.re= adLine()) { > =09if(++count > 10000) break; > =09else System.out.println(count + ": " + line); > } > {code} > It stops at line 7801 (EOF) : > {code} > 7799: "Gamemaster"@en . > 7800: "Genetic engineering"@en . > 7801: {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)