Package org.apache.tika.serialization
Class JacksonConfigReader
java.lang.Object
org.apache.tika.serialization.JacksonConfigReader
- All Implemented Interfaces:
ConfigReader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TgetConfig(ParseContext context, String configKey, Class<T> configClass, T defaultConfig) ImplementsParseContextConfig.getConfig(org.apache.tika.parser.ParseContext, java.lang.String, java.lang.Class<T>, T)once the context holds JSON for the key.<T> TreadConfig(String json, Class<T> configClass, boolean trusted) Deserializesjson; untrusted JSON may not set anOperatorOnlyproperty.
-
Constructor Details
-
JacksonConfigReader
public JacksonConfigReader()
-
-
Method Details
-
readConfig
Description copied from interface:ConfigReaderDeserializesjson; untrusted JSON may not set anOperatorOnlyproperty.- Specified by:
readConfigin interfaceConfigReader- Throws:
Exception
-
getConfig
public <T> T getConfig(ParseContext context, String configKey, Class<T> configClass, T defaultConfig) throws IOException Description copied from interface:ConfigReaderImplementsParseContextConfig.getConfig(org.apache.tika.parser.ParseContext, java.lang.String, java.lang.Class<T>, T)once the context holds JSON for the key.- Specified by:
getConfigin interfaceConfigReader- Throws:
IOException
-