Class FileProcessor
- java.lang.Object
-
- org.webharvest.runtime.processors.AbstractProcessor<FileDef>
-
- org.webharvest.runtime.processors.FileProcessor
-
@Autoscanned @TargetNamespace({"http://org.webharvest/schema/2.1/core","http://org.webharvest/schema/1.0/config"}) @Definition(value="file", validAttributes={"id","path","action(read;write;append;list)","type(text;binary)","charset(*charset)","listfilter","listfiles(true;false)","listdirs(true;false)","listrecursive(true;false)"}, requiredAttributes="path", definitionClass=FileDef.class) public class FileProcessor extends AbstractProcessor<FileDef>
File processor.
-
-
Field Summary
-
Fields inherited from class org.webharvest.runtime.processors.AbstractProcessor
elementDef, LOG
-
-
Constructor Summary
Constructors Constructor Description FileProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeVariable
appendBinary(Variable body)
Variable
execute(DynamicScopeContext context)
-
Methods inherited from class org.webharvest.runtime.processors.AbstractProcessor
debug, getBodyTextContent, getBodyTextContent, getBodyTextContent, getElementDef, getParentProcessor, getRunningLevel, run, setElementDef, setParentProcessor, setProperty
-
-
-
-
Method Detail
-
execute
public Variable execute(DynamicScopeContext context) throws InterruptedException
- Specified by:
execute
in classAbstractProcessor<FileDef>
- Throws:
InterruptedException
-
appendBinary
public NodeVariable appendBinary(Variable body)
-
-