Class DefaultDetector

  • All Implemented Interfaces:
    java.io.Serializable, Detector

    public class DefaultDetector
    extends CompositeDetector
    A composite detector based on all the Detector implementations available through the service provider mechanism. Detectors are loaded and returned in a specified order, of user supplied followed by non-MimeType Tika, followed by the Tika MimeType class. If you need to control the order of the Detectors, you should instead construct your own CompositeDetector and pass in the list of Detectors in the required order.
    Since:
    Apache Tika 0.9
    See Also:
    Serialized Form
    • Constructor Detail

      • DefaultDetector

        public DefaultDetector​(MimeTypes types,
                               ServiceLoader loader,
                               java.util.Collection<java.lang.Class<? extends Detector>> excludeDetectors)
      • DefaultDetector

        public DefaultDetector​(MimeTypes types,
                               java.lang.ClassLoader loader)
      • DefaultDetector

        public DefaultDetector​(java.lang.ClassLoader loader)
      • DefaultDetector

        public DefaultDetector​(MimeTypes types)
      • DefaultDetector

        public DefaultDetector()