Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-161

bzip2 decompression terminates after 900000 bytes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Duplicate
    • 1.3
    • 1.4
    • Compressors
    • None
    • Windows7 64bit JDK7u1,2

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            hannes2horns Hans horn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: