title: How to download file via FTP using multithreading?
body: <p>I have following task: to make Android program for downloading 1,000 files from FTP server (300 megabytes). Now I have made a program which parses tree of files and download it into SDCard. But it will take much time (40 minutes), and it isn't good, I need to reduce time of downloading. File is being downloaded with code: </p>
  
  <pre><code>BufferedOutputStream buffIn=new BufferedOutputStream(new FileOutputStream(f));
  mClient.retrieveFile(ftpFile.getName(), buffIn);
  buffIn.close();
  </code></pre>
  
  <p>But how can I use multithreading for it? I use apache-commons library, FTPClient class. I don't think that I should to copy code of downloading into Thread and it helps me. Please, help me, how can I reduce time of downloading? </p>