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

Calling close() on inputStream returned by CompressorStreamFactory.createCompressorInputStream() does not close the underlying input stream

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2
    • Component/s: Compressors
    • Labels:
      None

      Description

      When creating and closing a stream like this:

      InputStream is = csFactory.createCompressorInputStream(CompressorStreamFactory.GZIP, in);
      is.close();
      

      The underlying stream in is not closed.

      It seems like a bug - for instance it prevents from deleting the file on which that stream was opened.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                doronc Doron Cohen
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: