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

FileUtils.copyInputStreamToFile should document it closes the input source

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.5
    • Component/s: None
    • Labels:
      None
    • Environment:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: