java.lang.Object
java.lang.Thread
eu.steffo.cleaver.logic.Job
eu.steffo.cleaver.logic.ChopJob
- All Implemented Interfaces:
Runnable
public class ChopJob extends Job
A
Job
that converts regular files into chopped (*.chp + *.cXX) files.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields Modifier and Type Field Description private CompressConfig
compressConfig
private CryptConfig
cryptConfig
private File
file
private SplitConfig
splitConfig
-
Constructor Summary
Constructors Constructor Description ChopJob(File file, SplitConfig splitConfig, CryptConfig cryptConfig, CompressConfig compressConfig)
ChopJob(File file, SplitConfig splitConfig, CryptConfig cryptConfig, CompressConfig compressConfig, Runnable onProgressChange)
-
Method Summary
Modifier and Type Method Description CompressConfig
getCompressConfig()
CryptConfig
getCryptConfig()
File
getFile()
SplitConfig
getSplitConfig()
String
getType()
void
run()
The function that is run on a different thread whenThread.start()
is called.Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, toString, yield
-
Field Details
-
Constructor Details
-
ChopJob
public ChopJob(File file, SplitConfig splitConfig, CryptConfig cryptConfig, CompressConfig compressConfig, Runnable onProgressChange) -
ChopJob
public ChopJob(File file, SplitConfig splitConfig, CryptConfig cryptConfig, CompressConfig compressConfig)
-
-
Method Details
-
getType
-
getFile
-
getSplitConfig
- Specified by:
getSplitConfig
in classJob
- Returns:
- The
SplitConfig
of the job. If null, the job shouldn't handle file splitting/merging.
-
getCryptConfig
- Specified by:
getCryptConfig
in classJob
- Returns:
- The
CryptConfig
of the job. If null, the job shouldn't handle file encryption/decryption.
-
getCompressConfig
- Specified by:
getCompressConfig
in classJob
- Returns:
- The
CompressConfig
of the job. If null, the job shouldn't handle file compression/decompression.
-
run
public void run()Description copied from class:Job
The function that is run on a different thread whenThread.start()
is called. Child classes should overrideThread.run()
.
-