Is edtFTPj thread safe?
No, this would incur a significant performance penalty for users that do not require a thread safe library. Instead, synchronize your own code to ensure multiple threads do not access the same FTPClient object. 5. I want to get access to the InputStream of the incoming data, but I can only find a get() method that takes an OutputStream. The underlying InputStream for data is deliberately not made available. Failure to close this stream at the appropriate point will cause FTP operations to hang. Instead, supply an OutputStream that the FTPClient will write the incoming data to, and use a java.io.PipedInputStream to convert it to an InputStream. You will need to use a separate thread – see the PipedInputStream Javadoc. 6. The FTPClient constructor is hanging connecting to the FTP server, even though I am supplying a timeout value Unfortunately (and surprisingly), the java.net.Socket class was only given timeout functionality in its constructor in JDK 1.4. Prior to this, it was not possib