Class TikaParser
java.lang.Object
com.norconex.importer.handler.parser.impl.TikaParser
- All Implemented Interfaces:
Configurable<TikaParserConfig>,ConfigurableDocHandler<TikaParserConfig>,DocHandler
Raw Tika parser that needs to be configured by passing a tika
configuration file.
-
Field Summary
Fields inherited from interface com.norconex.commons.lang.config.Configurable
PROPERTYFields inherited from interface com.norconex.importer.handler.DocHandler
NAME -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TikaParser
public TikaParser()
-
-
Method Details
-
init
Description copied from interface:DocHandlerInitialize any required resources. Invoked once per Importer instance, by the Importer.- Specified by:
initin interfaceDocHandler- Throws:
IOException- An I/O exception of some sort has occurred
-
close
public void close()Description copied from interface:DocHandlerCloses any required resources. Invoked once per Importer instance, by the Importer.- Specified by:
closein interfaceDocHandler
-
handle
Description copied from interface:DocHandlerPerform any operations on a document.- Specified by:
handlein interfaceDocHandler- Parameters:
ctx- the document handling context- Returns:
falseto stop processing and reject a document ortrueto proceed to the next configured handler.- Throws:
IOException- An I/O exception of some sort has occurred
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getConfiguration
- Specified by:
getConfigurationin interfaceConfigurable<TikaParserConfig>
-