public class Download extends AbstractMonitorableTask
taskStatuscancellationRequested| 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, setTaskNameisCancellationRequestedactiveCount, 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, yieldequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisCancellationRequestedpublic 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.IOExceptionpublic static boolean acceptableFileSize(java.io.File f,
int estimated_size)
URLConnection's method getContentLength() does not give
exact size.