public class DownloadThread extends Thread
<chunk>.001 <chunk>.002 ... <chunk>.<N> <file>.crc(where the chunks will be merged to <file>.<ext>) or
<file>.<ext> <file>.crcCRC file contents:
filename=<file>.<ext> size=<fileSizeInBytes> crc32=<8DigitsHexCRC32>
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
static int |
MAX_BUFFER_SIZE |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
DownloadThread(Configuration cfg,
IDownloadListener listener,
URL url) |
DownloadThread(Configuration cfg,
IDownloadListener listener,
URL url,
boolean handleCrcAndSplits) |
Modifier and Type | Method and Description |
---|---|
static long |
calculateCRC32(File file) |
void |
rbcProgressCallback(double progress) |
void |
run() |
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, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public static final int MAX_BUFFER_SIZE
public DownloadThread(Configuration cfg, IDownloadListener listener, URL url)
public DownloadThread(Configuration cfg, IDownloadListener listener, URL url, boolean handleCrcAndSplits)
public static long calculateCRC32(File file) throws IOException
IOException
public void rbcProgressCallback(double progress)
Copyright © 2018 Ken Händel. All rights reserved.