Oops - looks like it was done as part of IO-380 (not yet released). See also IO-381 which adds a method that does not close the input stream:
public static void copyToFile(final InputStream source, final File destination) On 6 August 2014 19:10, Alex P <student...@gmail.com> wrote: > Could you point me out. > > 2.4 does not say that: > http://commons.apache.org/proper/commons-io/javadocs/api-2.4/org/apache/commons/io/FileUtils.html#copyInputStreamToFile%28java.io.InputStream,%20java.io.File%29 > > WBR > AlexP. > > > On Wed, Aug 6, 2014 at 1:55 PM, sebb <seb...@gmail.com> wrote: > >> On 6 August 2014 18:47, Alex P <student...@gmail.com> wrote: >> > Hi All, >> > >> > FileUtils.copyInputStreamToFile(...) closes the source InputStream, what >> I >> > don't think is correct. >> > What do you think? >> >> The Javadoc clearly states that the source is closed. >> >> > With best regards, >> > AlexP. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org >> For additional commands, e-mail: dev-h...@commons.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org