Package org.apache.tika.parser.enricher
Class OcrWarnings
java.lang.Object
org.apache.tika.parser.enricher.OcrWarnings
Writes
TikaCoreProperties.OCR_WARNINGS: each code once per document, and for an
inline image also on the parent document, whose content receives the image's text.- Since:
- Apache Tika 4.2
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidAdds the code to the metadata unless it is already there.static voidadd(ParseContext context, Metadata metadata, String code) Adds the code to the metadata and, for an inline image, to its parent's.static voidaddToInlineParent(ParseContext context, Metadata metadata, String code) The text of an inline image lands in the parent's content, so the doubt goes with it.
-
Method Details
-
add
Adds the code to the metadata unless it is already there. -
add
Adds the code to the metadata and, for an inline image, to its parent's. -
addToInlineParent
The text of an inline image lands in the parent's content, so the doubt goes with it.
-