Class AbstractEncodingDetectorParser

java.lang.Object
org.apache.tika.parser.AbstractEncodingDetectorParser
All Implemented Interfaces:
Serializable, Parser
Direct Known Subclasses:
EnviHeaderParser, JSoupParser, MIFParser, PackageParser, SourceCodeParser, TextAndCSVParser, TXTParser

public abstract class AbstractEncodingDetectorParser extends Object implements Parser
Abstract base class for parsers that use the AutoDetectReader and need to use the EncodingDetector configured by TikaConfig
See Also:
  • Constructor Details

    • AbstractEncodingDetectorParser

      public AbstractEncodingDetectorParser()
    • AbstractEncodingDetectorParser

      public AbstractEncodingDetectorParser(EncodingDetector encodingDetector)
  • Method Details

    • getEncodingDetector

      protected EncodingDetector getEncodingDetector(ParseContext parseContext)
      Look for an EncodingDetetor in the ParseContext. If it hasn't been passed in, use the original EncodingDetector from initialization.
      Parameters:
      parseContext -
      Returns:
    • getEncodingDetector

      public EncodingDetector getEncodingDetector()
    • setEncodingDetector

      public void setEncodingDetector(EncodingDetector encodingDetector)