java.lang.Object
java.lang.Thread
eu.steffo.cleaver.logic.Job
eu.steffo.cleaver.logic.ChopJob
- All Implemented Interfaces:
java.lang.Runnable
public class ChopJob extends Job
A
Job
that converts regular files into chopped (*.chp + *.cXX) files.-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ChopJob(java.io.File file, SplitConfig splitConfig, CryptConfig cryptConfig, CompressConfig compressConfig)
ChopJob(java.io.File file, SplitConfig splitConfig, CryptConfig cryptConfig, CompressConfig compressConfig, java.lang.Runnable onProgressChange)
-
Method Summary
Modifier and Type Method Description CompressConfig
getCompressConfig()
CryptConfig
getCryptConfig()
java.io.File
getFile()
SplitConfig
getSplitConfig()
java.lang.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
-
Constructor Details
-
ChopJob
public ChopJob(java.io.File file, SplitConfig splitConfig, CryptConfig cryptConfig, CompressConfig compressConfig, java.lang.Runnable onProgressChange) -
ChopJob
public ChopJob(java.io.File file, SplitConfig splitConfig, CryptConfig cryptConfig, CompressConfig compressConfig)
-
-
Method Details
-
getType
public java.lang.String getType() -
getFile
public java.io.File 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()
.
-