|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.netarkivet.common.utils.batch.BatchLocalFiles
public class BatchLocalFiles
Class for running FileBatchJobs on a set of local files. The constructor takes an array of files to be processed and the run() method takes a FileBatchJob and applies it to each file in turn.
Constructor Summary | |
---|---|
BatchLocalFiles(java.io.File[] incomingFiles)
Given an array of files, constructs a BatchLocalFiles instance to be used in running a batch job over those files. |
Method Summary | |
---|---|
void |
run(FileBatchJob job,
java.io.OutputStream os)
Run the given job on the files associated with this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BatchLocalFiles(java.io.File[] incomingFiles) throws ArgumentNotValid
incomingFiles
- The files that should be used processed
by the batchjob
ArgumentNotValid
- if incomingFiles is null or contains
a null entryMethod Detail |
---|
public void run(FileBatchJob job, java.io.OutputStream os)
job
- - the job to be executedos
- - the OutputStream to which output data is written
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |