org.schmant.task.at4j.lzma
Class LzmaTask

java.lang.Object
  extended by org.schmant.support.AbstractArgumentChecker
      extended by org.schmant.task.stub.AbstractTask<T>
          extended by org.schmant.task.stub.AbstractActionTask<T>
              extended by org.schmant.task.stub.AbstractProcessTask<T>
                  extended by org.schmant.task.stub.AbstractProcessOneFileTask<LzmaTask>
                      extended by 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

Field Summary
 
Fields inherited from interface org.schmant.task.confable.OverwriteConfigurable
DEFAULT_OVERWRITE_STRATEGY
 
Method Summary
 void copyProperties(LzmaTask spec)
          Override the implementation from AbstractTask to copy the source properties.
protected  String getDefaultTargetFileExtension()
          Subclasses implement this to return the default file extension for target files (such as ".gz").
protected  OutputStream proxyOutputStream(OutputStream os)
           
 
Methods inherited from class org.schmant.task.stub.AbstractProcessOneFileTask
get, isTargetMandatory, runInternal, setDeleteSourceFile
 
Methods inherited from class org.schmant.task.stub.AbstractProcessTask
getOverwriteStrategy, getTarget, setOverwrite, setOverwriteStrategy, setTarget, toString, validate
 
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
 
Methods inherited from class org.schmant.support.AbstractArgumentChecker
check, check, check, check
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.schmant.task.confable.SourceConfigurable
addSource, addSources, clearSources, setRelativeToBase, setSource, setSources
 
Methods inherited from interface org.schmant.task.confable.SourceConfigured
getSource, getSources
 
Methods inherited from interface org.schmant.task.TaskSpecification
createTask
 
Methods inherited from interface org.schmant.task.confable.LoggingConfigurable
setLogFooter, setLogHeader, setReportLevel, setTraceLogging
 

Method Detail

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.