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
 
 public class DefaultDetector extends CompositeDetector A composite detector based on all theDetectorimplementations available through theservice 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 CompositeDetectorand pass in the list of Detectors in the required order.- Since:
- Apache Tika 0.9
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description DefaultDetector()DefaultDetector(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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Detector>getDetectors()Returns the component detectors.- 
Methods inherited from class org.apache.tika.detect.CompositeDetectordetect
 
- 
 
- 
- 
- 
Constructor Detail- 
DefaultDetectorpublic DefaultDetector(MimeTypes types, ServiceLoader loader, Collection<Class<? extends Detector>> excludeDetectors) 
 - 
DefaultDetectorpublic DefaultDetector(MimeTypes types, ServiceLoader loader) 
 - 
DefaultDetectorpublic DefaultDetector(MimeTypes types, ClassLoader loader) 
 - 
DefaultDetectorpublic DefaultDetector(ClassLoader loader) 
 - 
DefaultDetectorpublic DefaultDetector(MimeTypes types) 
 - 
DefaultDetectorpublic DefaultDetector() 
 
- 
 - 
Method Detail- 
getDetectorspublic List<Detector> getDetectors() Description copied from class:CompositeDetectorReturns the component detectors.- Overrides:
- getDetectorsin class- CompositeDetector
 
 
- 
 
-