Class DefaultEncodingDetector

java.lang.Object
org.apache.tika.detect.CompositeEncodingDetector
org.apache.tika.detect.DefaultEncodingDetector
All Implemented Interfaces:
Serializable, EncodingDetector

@Deprecated(since="2026-04-30") public class DefaultEncodingDetector extends CompositeEncodingDetector
Deprecated.
This version of the Apache Tika library is deprecated. Use your own version of Apache Tika.
A composite encoding detector based on all the EncodingDetector implementations available through the service 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 own CompositeDetector and pass in the list of Detectors in the required order.
Since:
Apache Tika 1.15
See Also:
  • Constructor Details

    • DefaultEncodingDetector

      public DefaultEncodingDetector()
      Deprecated.
    • DefaultEncodingDetector

      public DefaultEncodingDetector(ServiceLoader loader)
      Deprecated.
    • DefaultEncodingDetector

      public DefaultEncodingDetector(ServiceLoader loader, Collection<Class<? extends EncodingDetector>> excludeEncodingDetectors)
      Deprecated.