org.schmant.task.at4j.lzma
Class LzmaTask
java.lang.Object
org.schmant.support.AbstractArgumentChecker
org.schmant.task.stub.AbstractTask<T>
org.schmant.task.stub.AbstractActionTask<T>
org.schmant.task.stub.AbstractProcessTask<T>
org.schmant.task.stub.AbstractProcessOneFileTask<LzmaTask>
org.schmant.task.at4j.lzma.LzmaTask
- All Implemented Interfaces:
- Producer<WritableFile>, TaskDependency, ActionTaskConfigurable<LzmaTask>, ActionTaskSpec<LzmaTask>, LoggingConfigurable<LzmaTask>, OverwriteConfigurable<LzmaTask>, SourceConfigurable<LzmaTask>, SourceConfigured, TargetConfigurable<LzmaTask>, TargetConfigured, GeneratorTaskConfigurable<LzmaTask>, GeneratorTaskSpec<LzmaTask>, ProcessTaskConfigurable<LzmaTask>, ProcessTaskSpec<LzmaTask>, Task, TaskRunnable, TaskSpecification<LzmaTask>
public final class LzmaTask
- extends AbstractProcessOneFileTask<LzmaTask>
See LzmaTF
Warning: LZMA compression does not seem to work reliably. Sometimes,
when compressing, it seems to want to allocate too much (very much) memory,
and that often leads to an OutOfMemoryError. Avoid using this class
until the issue is fixed.
- Since:
- 0.8
- Author:
- Karl Gustafsson
- Task_package:
- org.at4j
| Methods inherited from class org.schmant.task.stub.AbstractActionTask |
addSource, addSources, clearSources, getRelativeToBase, getSource, getSources, isMoreThanOneSourceAllowed, isSourcesMandatory, setRelativeToBase, setSource, setSources |
| Methods inherited from class org.schmant.task.stub.AbstractTask |
cancel, createTask, getDefaultLogFooter, getDefaultLogHeader, getDependencyForTasksScheduledByThisTask, getDependencyObservable, getFailureCause, getLogFooter, getLogHeader, getSatisfiedStateLock, getThis, isCancelled, isDone, isInterrupted, isRunning, isSatisfied, isSuccessful, run, setLogFooter, setLogHeader, setReportLevel, setTraceLogging |
getDefaultTargetFileExtension
protected String getDefaultTargetFileExtension()
- Description copied from class:
AbstractProcessOneFileTask
- Subclasses implement this to return the default file extension for target
files (such as ".gz"). This is used when inferring the target entity.
- Specified by:
getDefaultTargetFileExtension in class AbstractProcessOneFileTask<LzmaTask>
- Returns:
- The default target file name extension.
proxyOutputStream
protected OutputStream proxyOutputStream(OutputStream os)
throws IOException
- Specified by:
proxyOutputStream in class AbstractProcessOneFileTask<LzmaTask>
- Throws:
IOException
copyProperties
public void copyProperties(LzmaTask spec)
- Description copied from class:
AbstractActionTask
- Override the implementation from
AbstractTask to copy the
source properties. Subclasses must override this to copy their own
properties.
- Specified by:
copyProperties in interface TaskSpecification<LzmaTask>- Overrides:
copyProperties in class AbstractProcessOneFileTask<LzmaTask>
- Parameters:
spec - The specification to copy properties to.