public class DefaultDetector extends CompositeDetector
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.Constructor and Description |
---|
DefaultDetector() |
DefaultDetector(ClassLoader loader) |
DefaultDetector(MimeTypes types) |
DefaultDetector(MimeTypes types,
ClassLoader loader) |
DefaultDetector(MimeTypes types,
ServiceLoader loader) |
Modifier and Type | Method and Description |
---|---|
List<Detector> |
getDetectors()
Returns the component detectors.
|
detect
public DefaultDetector(MimeTypes types, ServiceLoader loader)
public DefaultDetector(MimeTypes types, ClassLoader loader)
public DefaultDetector(ClassLoader loader)
public DefaultDetector(MimeTypes types)
public DefaultDetector()
public List<Detector> getDetectors()
CompositeDetector
getDetectors
in class CompositeDetector
Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.