Class Download

java.lang.Object
java.lang.Thread
org.gvsig.tools.task.AbstractCancellableTask
org.gvsig.tools.task.AbstractMonitorableTask
org.gvsig.installer.lib.impl.utils.Download
All Implemented Interfaces:
Runnable, org.gvsig.tools.task.CancellableTask, org.gvsig.tools.task.MonitorableTask

public class Download extends org.gvsig.tools.task.AbstractMonitorableTask
Version:
$Id$
Author:
gvSIG Team
  • Constructor Details

    • Download

      public Download(org.gvsig.tools.task.SimpleTaskStatus taskStatus)
      Parameters:
      taskName -
    • Download

      public Download()
  • Method Details

    • downloadFile

      public File downloadFile(URL url, String defaultFileName) throws IOException
      Throws:
      IOException
    • acceptableFileSize

      public static boolean acceptableFileSize(File f, int estimated_size)
      URLConnection's method getContentLength() does not give exact size.
      Returns:
      whether the size is acceptable