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

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.2
    • Compressors
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: