You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Cory Burkhardt <cb...@cs.utsa.edu> on 2008/04/03 18:06:55 UTC

Is FTPClient.retrieveFile thread safe?

The Net FAQ says "If you want to share a single FTPClient instance between
multiple threads, you must serialize access to the object with critical
sections."  Since the retrieveFile method blocks until the download is
complete, does that mean I cannot use this method from multiple threads and
I am required to use the retrieveFileStream method to write the file
manually instead?