Package fr.formiko.usuel
Class DownloadThread
java.lang.Object
java.lang.Thread
fr.formiko.usuel.DownloadThread
- All Implemented Interfaces:
- Runnable
Print info about curent download.
this thread watch file size & print it / fileSize.
this thread watch file size & print it / fileSize.
- Author:
- Hydrolien
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.ThreadThread.State, Thread.UncaughtExceptionHandler
- 
Field SummaryFieldsFields inherited from class java.lang.ThreadMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
- 
Constructor SummaryConstructorsConstructorDescriptionDownloadThread(File fileOut, long fileToDowloadSize, String downloadName)Main constructor.
- 
Method SummaryModifier and TypeMethodDescriptionvoidrun()Main function that print every second %age of download done.voidMethods inherited from class java.lang.ThreadactiveCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
- 
Field Details- 
fileOut
- 
fileToDowloadSizeprivate long fileToDowloadSize
- 
runningprivate boolean running
- 
downloadName
 
- 
- 
Constructor Details- 
DownloadThreadMain constructor.- Parameters:
- fileOut- file that we are curently filling by the downloading file
- fileToDowloadSize- size that we should reach when download will end
 
 
- 
- 
Method Details