public class ThreadCopyFile.CopyThread extends Thread
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| 构造器和说明 |
|---|
CopyThread(CountDownLatch countDownLatch,
ThreadCopyFile.Config config,
int index,
File desFile,
long startPos,
long endPos,
File srcFile) |
CopyThread(CountDownLatch countDownLatch,
ThreadCopyFile.Config config,
int index,
File desFile,
long startPos,
long endPos,
InputStream srcInputStream,
long fileLength) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getCopyedSize()
取得 线程已经拷贝文件的大小
|
long |
getFilePointer() |
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, yieldpublic CopyThread(CountDownLatch countDownLatch, ThreadCopyFile.Config config, int index, File desFile, long startPos, long endPos, File srcFile)
countDownLatch - config - index - desFile - startPos - endPos - srcFile - public CopyThread(CountDownLatch countDownLatch, ThreadCopyFile.Config config, int index, File desFile, long startPos, long endPos, InputStream srcInputStream, long fileLength)
config - index - desFile - startPos - endPos - srcInputStream - fileLength - Copyright © 2020. All rights reserved.