Package org.verapdf.processor
Interface ItemProcessor
-
- All Superinterfaces:
AutoCloseable,Closeable,Component,Processor
public interface ItemProcessor extends Processor
Processor encapsulates all validation processes: validation, metadata fixes and feature extracting.- Author:
- Sergey Shemyakov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProcessorResultprocess(File toProcess)Process aFileand return theProcessorResultProcessorResultprocess(ItemDetails fileDetails, InputStream toProcess)Process anInputStreamand return theProcessorResult-
Methods inherited from interface org.verapdf.component.Component
getDetails
-
Methods inherited from interface org.verapdf.processor.Processor
getConfig, getDependencies
-
-
-
-
Method Detail
-
process
ProcessorResult process(ItemDetails fileDetails, InputStream toProcess)
Process anInputStreamand return theProcessorResult- Parameters:
fileDetails- theItemDetailsof the stream to processtoProcess- anInputStreamto the PDF/A to process- Returns:
- the result of the process as a
ProcessorResult
-
process
ProcessorResult process(File toProcess) throws VeraPDFException
Process aFileand return theProcessorResult- Parameters:
toProcess- the PDF/AFileto process- Returns:
- the result of the process as a
ProcessorResult - Throws:
VeraPDFException- if the file cannot be found or opened.
-
-