Package org.apache.tika.detect
Class DefaultEncodingDetector
- java.lang.Object
-
- org.apache.tika.detect.CompositeEncodingDetector
-
- org.apache.tika.detect.DefaultEncodingDetector
-
- All Implemented Interfaces:
java.io.Serializable
,EncodingDetector
public class DefaultEncodingDetector extends CompositeEncodingDetector
A composite encoding detector based on all theEncodingDetector
implementations available through theservice provider mechanism
. Those loaded via the service provider mechanism are ordered by how they appear in the file, if there is a single service file. If multiple, there is no guarantee of order. If you need to control the order of the Detectors, you should instead construct your ownCompositeDetector
and pass in the list of Detectors in the required order.- Since:
- Apache Tika 1.15
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultEncodingDetector()
DefaultEncodingDetector(ServiceLoader loader)
DefaultEncodingDetector(ServiceLoader loader, java.util.Collection<java.lang.Class<? extends EncodingDetector>> excludeEncodingDetectors)
-
Method Summary
-
Methods inherited from class org.apache.tika.detect.CompositeEncodingDetector
detect, getDetectors
-
-
-
-
Constructor Detail
-
DefaultEncodingDetector
public DefaultEncodingDetector()
-
DefaultEncodingDetector
public DefaultEncodingDetector(ServiceLoader loader)
-
DefaultEncodingDetector
public DefaultEncodingDetector(ServiceLoader loader, java.util.Collection<java.lang.Class<? extends EncodingDetector>> excludeEncodingDetectors)
-
-