public abstract class AbstractBatchProcessor extends Object implements BatchProcessor
| Modifier and Type | Field and Description |
|---|---|
protected ItemProcessor |
processor |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBatchProcessor(ItemProcessor processor) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ProcessorConfig |
getConfig() |
Collection<ReleaseDetails> |
getDependencies() |
ComponentDetails |
getDetails() |
BatchSummary |
process(File toProcess,
boolean recurse,
BatchProcessingHandler resultHandler)
Process all .pdf files in a directory, optionally recursively.
|
BatchSummary |
process(List<? extends File> toProcess,
BatchProcessingHandler resultHandler)
Process a list of PDF files
|
protected abstract void |
processContainer(File container,
boolean recurse) |
protected abstract void |
processList(List<? extends File> toProcess) |
protected void |
processResult(ProcessorResult result) |
protected final ItemProcessor processor
protected AbstractBatchProcessor(ItemProcessor processor)
org.verapdf.processor.BatchProcessor#process(java.io.File, boolean,
org.verapdf.processor.ProcessorResultHandler)public ProcessorConfig getConfig()
getConfig in interface ProcessorProcessorConfig that holds the details for the
configuration of this ProcessorProcessor.getConfig()public Collection<ReleaseDetails> getDependencies()
getDependencies in interface ProcessorCollection of ReleaseDetails for the
Processor's dependencies, for auditing.Processor.getDependencies()public ComponentDetails getDetails()
getDetails in interface ComponentComponent.getDetails()public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCloseable.close()public BatchSummary process(File toProcess, boolean recurse, BatchProcessingHandler resultHandler) throws VeraPDFException
BatchProcessorprocess in interface BatchProcessortoProcess - a File that denotes a directory to processrecurse - set true to recurse into sub-directories, false if
recursion not required.resultHandler - the BatchProcessingHandler that will be used to
process the resultsBatchSummary that reports the details of the batch
processVeraPDFException - when an error occurs during processing.public BatchSummary process(List<? extends File> toProcess, BatchProcessingHandler resultHandler) throws VeraPDFException
BatchProcessorprocess in interface BatchProcessortoProcess - a List of Files to processresultHandler - the BatchProcessingHandler that will be used to
process the resultsBatchSummary that reports the details of the batch
processVeraPDFException - when an error occurs during processing.protected abstract void processContainer(File container, boolean recurse) throws VeraPDFException
VeraPDFExceptionprotected abstract void processList(List<? extends File> toProcess) throws VeraPDFException
VeraPDFExceptionprotected void processResult(ProcessorResult result) throws VeraPDFException
VeraPDFExceptionCopyright © 2015–2020 The veraPDF Consortium. All rights reserved.