Class PoiExtractionTools
java.lang.Object
ai.redouble.demo.poi.PoiExtractionTools
- All Implemented Interfaces:
ExtractionTools
The Apache POI / PDFBox reader, chosen over the engine's toolkit-free default whenever this
module is on the classpath (a higher priority). It reads PDFs locally, page by page, so a PDF
with a text layer never costs a model call. A native build that leaves this module off falls
back to the toolkit-free reader, which is why the module exists separately.
- Since:
- 0.1 (2026-09-22)
- Author:
- Andrey Santrosyan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeterministic(Identifiable parent, FileRef input) The no-model reader for text and Office documents (and, whenExtractionTools.readsPdfLocally(), PDFs).intpriority()Ties break toward the higher number; the engine's toolkit-free default is 0.booleanTrue when this reader opens PDFs itself (POI/PDFBox); false when a PDF goes whole to the model tier.vision(Identifiable parent, FileRef input) The model reader for images (and PDFs whenExtractionTools.readsPdfLocally()is false, or a PDF's scanned pages when true).
-
Constructor Details
-
PoiExtractionTools
public PoiExtractionTools()
-
-
Method Details
-
priority
public int priority()Description copied from interface:ExtractionToolsTies break toward the higher number; the engine's toolkit-free default is 0.- Specified by:
priorityin interfaceExtractionTools
-
readsPdfLocally
public boolean readsPdfLocally()Description copied from interface:ExtractionToolsTrue when this reader opens PDFs itself (POI/PDFBox); false when a PDF goes whole to the model tier.- Specified by:
readsPdfLocallyin interfaceExtractionTools
-
deterministic
Description copied from interface:ExtractionToolsThe no-model reader for text and Office documents (and, whenExtractionTools.readsPdfLocally(), PDFs).- Specified by:
deterministicin interfaceExtractionTools
-
vision
Description copied from interface:ExtractionToolsThe model reader for images (and PDFs whenExtractionTools.readsPdfLocally()is false, or a PDF's scanned pages when true).- Specified by:
visionin interfaceExtractionTools
-