Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-380

FileUtils.copyInputStreamToFile should document it closes the input source

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.4
    • 2.5
    • None
    • None
    • JDK 7, OSX 10.8.3 (doesn't matter)

    Description

      It would be nice to extend the parameter description

      @param source the <code>InputStream</code> to copy bytes from, must not be

      {@code null}

      to read:

      @param source the <code>InputStream</code> to copy bytes from, must not be {@code null}

      , will be closed

      so that one is aware it cannot be used e.g. on ZipInputStream which require the stream to still be open for executing zip.getNextEntry.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              claudio_ch Claudio Nieder
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: