Class TikaAutoContentTransformer

  • All Implemented Interfaces:
    ContentWorker, ContentTransformer, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware

    public class TikaAutoContentTransformer
    extends TikaPoweredContentTransformer
    A Content Extractor for XML, HTML and Text, which makes use of the Apache Tika auto-detection to select the best parser to process your document. This will be used for all files which Tika can handle, but where no other more explicit extractor is defined.
    Author:
    Nick Burch
    • Field Detail

      • SUPPORTED_MIMETYPES

        public static java.util.ArrayList<java.lang.String> SUPPORTED_MIMETYPES
        We support all the mimetypes that the Tika auto-detect parser can handle, except for Image, Audio and Video ones which don't make much sense
    • Constructor Detail

      • TikaAutoContentTransformer

        public TikaAutoContentTransformer​(org.apache.tika.config.TikaConfig tikaConfig)
    • Method Detail

      • getParser

        protected org.apache.tika.parser.Parser getParser()
        Returns the Tika Auto-Detection parser, which will try to process all documents that Tika knows about
        Specified by:
        getParser in class TikaPoweredContentTransformer