Package org.apache.tika.detect
Class DefaultDetector
java.lang.Object
org.apache.tika.detect.CompositeDetector
org.apache.tika.detect.DefaultDetector
- All Implemented Interfaces:
Serializable
,Detector
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:
-
Constructor Summary
ConstructorDescriptionDefaultDetector
(ClassLoader loader) DefaultDetector
(MimeTypes types) DefaultDetector
(MimeTypes types, ClassLoader loader) DefaultDetector
(MimeTypes types, ServiceLoader loader) DefaultDetector
(MimeTypes types, ServiceLoader loader, Collection<Class<? extends Detector>> excludeDetectors) -
Method Summary
Methods inherited from class org.apache.tika.detect.CompositeDetector
detect
-
Constructor Details
-
DefaultDetector
public DefaultDetector(MimeTypes types, ServiceLoader loader, Collection<Class<? extends Detector>> excludeDetectors) -
DefaultDetector
-
DefaultDetector
-
DefaultDetector
-
DefaultDetector
-
DefaultDetector
public DefaultDetector()
-
-
Method Details
-
getDetectors
Description copied from class:CompositeDetector
Returns the component detectors.- Overrides:
getDetectors
in classCompositeDetector
-