commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel F. Savarese" <>
Subject Re: Flush by net.ftp.FTPClient.retrieveFile(String, OutputStream)
Date Wed, 08 Sep 2004 17:16:51 GMT

In message <>, Marco Jacob writes:
>In my current case flushing _at the end_ would be no harm. But

I was talking about flushing at the end for storeFile only; not
for retrieveFile.  And that only because I have vague memories
of some classes not doing the right thing with respect
to writing out their buffers on close in the past.

>However, a note that retrieveFile flushes the stream should be in
>the javadoc comment of this method.

It won't flush it.  I made the change and committed it.  Check out
the CVS HEAD and see if it does what you want.  The copy buffer
size used by FTPClient should probably be configurable, maybe a
retrieveFile and storeFile that takes a buffer size parameter.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message