Class TextDocumentFactory

    • Constructor Detail

      • TextDocumentFactory

        public TextDocumentFactory()
      • TextDocumentFactory

        public TextDocumentFactory​(Properties properties)
                            throws org.apache.commons.configuration.ConfigurationException
        Throws:
        org.apache.commons.configuration.ConfigurationException
      • TextDocumentFactory

        public TextDocumentFactory​(String[] property)
                            throws org.apache.commons.configuration.ConfigurationException
        Throws:
        org.apache.commons.configuration.ConfigurationException
    • Method Detail

      • getParser

        protected org.apache.tika.parser.Parser getParser()
        Description copied from class: AbstractSimpleTikaDocumentFactory
        The parser to be used to parse this kind of documents; subclasses should return always the same instance, as Tika parsers are immutable and thread-safe.
        Specified by:
        getParser in class AbstractSimpleTikaDocumentFactory
        Returns:
        the parser to be used to parse this kind of documents.