org.apache.tika.detect
Class DefaultDetector

java.lang.Object
  extended by org.apache.tika.detect.CompositeDetector
      extended by org.apache.tika.detect.DefaultDetector
All Implemented Interfaces:
Serializable, Detector
Direct Known Subclasses:
OSGiDetector

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 Summary
DefaultDetector()
           
DefaultDetector(ClassLoader loader)
           
DefaultDetector(MimeTypes types)
           
DefaultDetector(MimeTypes types, ClassLoader loader)
           
DefaultDetector(MimeTypes types, ServiceLoader loader)
           
 
Method Summary
 
Methods inherited from class org.apache.tika.detect.CompositeDetector
detect, getDetectors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDetector

public DefaultDetector(MimeTypes types,
                       ServiceLoader loader)

DefaultDetector

public DefaultDetector(MimeTypes types,
                       ClassLoader loader)

DefaultDetector

public DefaultDetector(ClassLoader loader)

DefaultDetector

public DefaultDetector(MimeTypes types)

DefaultDetector

public DefaultDetector()


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.