public class Download extends AbstractMonitorableTask
taskStatus
cancellationRequested
Constructor and Description |
---|
Download() |
Download(SimpleTaskStatus taskStatus) |
Modifier and Type | Method and Description |
---|---|
static boolean |
acceptableFileSize(java.io.File f,
int estimated_size)
URLConnection 's method getContentLength() does not give
exact size. |
java.io.File |
downloadFile(java.net.URL url,
java.lang.String defaultFileName) |
cancelRequest, getSimpleTaskStatus, getTaskStatus, setTaskName
isCancellationRequested
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isCancellationRequested
public Download(SimpleTaskStatus taskStatus)
taskName
- public Download()
public java.io.File downloadFile(java.net.URL url, java.lang.String defaultFileName) throws java.io.IOException
java.io.IOException
public static boolean acceptableFileSize(java.io.File f, int estimated_size)
URLConnection
's method getContentLength() does not give
exact size.