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) |
DefaultDetector(MimeTypes types,
ServiceLoader loader,
Collection<Class<? extends Detector>> excludeDetectors) |
Modifier and Type | Method and Description |
---|---|
List<Detector> |
getDetectors()
Returns the component detectors.
|
detect
public DefaultDetector(MimeTypes types, ServiceLoader loader, Collection<Class<? extends Detector>> excludeDetectors)
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–2020 The Apache Software Foundation. All rights reserved.