static class Download.DownloadTask extends RecursiveAction
| Modifier and Type | Field and Description |
|---|---|
private long |
end |
private File |
file |
private long |
start |
private String |
strUrl |
| Constructor and Description |
|---|
DownloadTask(@NonNull String strUrl,
long start,
long end,
File file) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
compute() |
HttpURLConnection |
getConnection() |
exec, getRawResult, setRawResultadapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, complete, completeExceptionally, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, reinitialize, setForkJoinTaskTag, tryUnforkprivate final String strUrl
private final File file
private final long start
private final long end
protected void compute()
compute in class RecursiveActionpublic HttpURLConnection getConnection() throws IOException
IOExceptionCopyright © 2022. All rights reserved.