commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell" <bay...@apache.org>
Subject Fwd: bug?- org.apache.tools.bzip2.CBZip2InputStream
Date Wed, 05 Nov 2008 14:27:43 GMT
---------- Forwarded message ----------
From: Rico Basekow <basekow@mpimp-golm.mpg.de>
Date: Wed, Nov 5, 2008 at 7:23 AM
Subject: bug?- org.apache.tools.bzip2.CBZip2InputStream
To: bayard@apache.org


Hi Henri,

I had a problem to unzip my bzip2 file on linux with Apache Ant 1.7.1.
I added two lines in the org.apache.tools.bzip2.CBZip2InputStream
class, that solved the problem.

private void init() throws IOException {
      this.in.read();// added- read magic0
      this.in.read();// added- read magic1
      int magic2 = this.in.read();
      if (magic2 != 'h') {
...

Best regards
Rico

--
Dipl.-Inform. Rico Basekow
Bioinformatics

MPI fuer Molekulare Pflanzenphysiologie
Wissenschaftspark Golm
Am Muehlenberg 1, 14476 Potsdam, Germany

Tel. +49 (0) 331-5678752
Email: basekow@mpimp-golm.mpg.de

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message