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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class org.gvsig.tools.task.AbstractMonitorableTask
taskStatusFields inherited from class org.gvsig.tools.task.AbstractCancellableTask
cancellationRequestedFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanacceptableFileSize(File f, int estimated_size) URLConnection's method getContentLength() does not give exact size.downloadFile(URL url, String defaultFileName) Methods inherited from class org.gvsig.tools.task.AbstractMonitorableTask
cancelRequest, getSimpleTaskStatus, getTaskStatus, setTaskNameMethods inherited from class org.gvsig.tools.task.AbstractCancellableTask
isCancellationRequestedMethods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yieldMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gvsig.tools.task.CancellableTask
isCancellationRequested
-
Constructor Details
-
Download
public Download(org.gvsig.tools.task.SimpleTaskStatus taskStatus) - Parameters:
taskName-
-
Download
public Download()
-
-
Method Details
-
downloadFile
- Throws:
IOException
-
acceptableFileSize
URLConnection's method getContentLength() does not give exact size.- Returns:
- whether the size is acceptable
-