org.schmant.task.template.text
Class AbstractTextInsertionTaskFactory<U extends AbstractTextInsertionTaskFactory<U,T>,T extends AbstractTextInsertionTask<T>>

java.lang.Object
  extended by org.schmant.task.stub.AbstractTaskFactory<T,U>
      extended by org.schmant.task.stub.AbstractActionTaskFactory<T,U>
          extended by org.schmant.task.stub.AbstractProcessTaskFactory<U,T>
              extended by org.schmant.task.template.text.AbstractTextInsertionTaskFactory<U,T>
All Implemented Interfaces:
ActionTaskConfigurable<U>, ActionTaskFactory<U,T>, LoggingConfigurable<U>, OverwriteConfigurable<U>, SourceConfigurable<U>, TargetConfigurable<U>, TemporaryDirectoryConfigurable<U>, GeneratorTaskConfigurable<U>, GeneratorTaskFactory<U,T>, ProcessTaskConfigurable<U>, ProcessTaskFactory<U,T>, TaskFactory<U,T>, TaskRunnable, CharacterFileConfigurable<U>, TextInsertionTaskConfigurable<U>
Direct Known Subclasses:
AbstractLinkInsertionTaskFactory, ApiLinksTF, IncludeFilesTF, TextReplaceTF

public abstract class AbstractTextInsertionTaskFactory<U extends AbstractTextInsertionTaskFactory<U,T>,T extends AbstractTextInsertionTask<T>>
extends AbstractProcessTaskFactory<U,T>
implements TextInsertionTaskConfigurable<U>

Since:
0.8
Author:
Karl Gustafsson

Field Summary
 
Fields inherited from interface org.schmant.task.confable.OverwriteConfigurable
DEFAULT_OVERWRITE_STRATEGY
 
Constructor Summary
AbstractTextInsertionTaskFactory()
           
 
Method Summary
 U setBufferSize(int sz)
           
 U setInputEncoding(Charset cs)
           
 U setInputEncoding(String charsetName)
           
 U setOutputEncoding(Charset cs)
           
 U setOutputEncoding(String charsetName)
           
 U setTempDirectory(Object o)
          Set a temporary files directory for the task.
 
Methods inherited from class org.schmant.task.stub.AbstractProcessTaskFactory
setOverwrite, setOverwriteStrategy, setTarget
 
Methods inherited from class org.schmant.task.stub.AbstractActionTaskFactory
addSource, addSources, clearSources, setRelativeToBase, setSource, setSources
 
Methods inherited from class org.schmant.task.stub.AbstractTaskFactory
copy, create, createSpecification, getLastCreated, getSpecification, getThis, run, setLogFooter, setLogHeader, setReportLevel, setTraceLogging, toString
 
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.TargetConfigurable
setTarget
 
Methods inherited from interface org.schmant.task.confable.OverwriteConfigurable
setOverwrite, setOverwriteStrategy
 
Methods inherited from interface org.schmant.task.TaskFactory
copy, create, getLastCreated, getSpecification
 
Methods inherited from interface org.schmant.task.confable.LoggingConfigurable
setLogFooter, setLogHeader, setReportLevel, setTraceLogging
 
Methods inherited from interface org.schmant.task.TaskRunnable
run
 

Constructor Detail

AbstractTextInsertionTaskFactory

public AbstractTextInsertionTaskFactory()
Method Detail

setInputEncoding

public final U setInputEncoding(Charset cs)
Specified by:
setInputEncoding in interface CharacterFileConfigurable<U extends AbstractTextInsertionTaskFactory<U,T>>

setInputEncoding

public final U setInputEncoding(String charsetName)
Specified by:
setInputEncoding in interface CharacterFileConfigurable<U extends AbstractTextInsertionTaskFactory<U,T>>

setOutputEncoding

public final U setOutputEncoding(Charset cs)
Specified by:
setOutputEncoding in interface CharacterFileConfigurable<U extends AbstractTextInsertionTaskFactory<U,T>>

setOutputEncoding

public final U setOutputEncoding(String charsetName)
Specified by:
setOutputEncoding in interface CharacterFileConfigurable<U extends AbstractTextInsertionTaskFactory<U,T>>

setBufferSize

public final U setBufferSize(int sz)
Specified by:
setBufferSize in interface TextInsertionTaskConfigurable<U extends AbstractTextInsertionTaskFactory<U,T>>

setTempDirectory

public final U setTempDirectory(Object o)
Description copied from interface: TemporaryDirectoryConfigurable
Set a temporary files directory for the task.

Specified by:
setTempDirectory in interface TemporaryDirectoryConfigurable<U extends AbstractTextInsertionTaskFactory<U,T>>
Parameters:
o - The temporary files directory. This will be interpreted in some way.
Returns:
this