commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [io] FileUtils
Date Wed, 06 Aug 2014 19:35:23 GMT
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 <student00x@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 <sebbaz@gmail.com> wrote:
>
>> On 6 August 2014 18:47, Alex P <student00x@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-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message