- Type Parameters:
Input- the type of the input data to be processed.
- All Known Subinterfaces:
- All Known Implementing Classes:
public interface Extractor<Input>It defines the signature of a generic Extractor.
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
ExtractorDescriptionof this extractor.
run(ExtractionParameters extractionParameters, ExtractionContext context, Input in, ExtractionResult out)Executes the extractor.
void run(ExtractionParameters extractionParameters, ExtractionContext context, Input in, ExtractionResult out) throws IOException, ExtractionExceptionExecutes the extractor. Will be invoked only once, extractors are not reusable.
extractionParameters- the parameters to be applied during the extraction.
context- The document context.
in- The extractor input data.
out- the collector for the extracted data.
IOException- On error while reading from the input stream.
ExtractionException- On other error, such as parse errors.