Class TesseractOCRConfig.RuntimeConfig

java.lang.Object
org.apache.tika.parser.ocr.TesseractOCRConfig
org.apache.tika.parser.ocr.TesseractOCRConfig.RuntimeConfig
All Implemented Interfaces:
Serializable
Enclosing class:
TesseractOCRConfig

public static class TesseractOCRConfig.RuntimeConfig extends TesseractOCRConfig
Runtime-only TesseractOCRConfig that prevents modification of paths and of the -c pass-through map. Used to enforce immutability of parser-level paths during parse-time configuration.

This class is deserialized by ConfigDeserializer (in tika-serialization) which uses Jackson to populate fields via setters. If the JSON contains any path fields, the overridden setters will throw TikaConfigException. otherTesseractConfig is refused as well: tesseract variables such as debug_file name files the binary opens, so the map is operator configuration only.

See Also: