title: java - Progress Bar while download with FileUtils
body: <p>I'm trying to download a large file from URL with <strong>commons.io Apache library</strong>.
  This is my code:</p>
  
  <pre><code>    InputStream stream = new URL(CLIENT_URL).openStream();
      ProgressMonitorInputStream pmis = new ProgressMonitorInputStream(null, "Downloading...", stream);
      ProgressMonitor pm = pmis.getProgressMonitor();
      pm.setMillisToDecideToPopup(0);
      pm.setMillisToPopup(0);
      FileUtils.copyInputStreamToFile(pmis, new File(LATEST_FILENAME));
      pmis.close();
      stream.close();
  </code></pre>
  
  <p>But it doesn't show the popup. Or, to be honest, the popup appear and disappear only for a millisec, while the download take about 10secs.</p>