Class AbstractEncodingDetectorParser
java.lang.Object
org.apache.tika.parser.AbstractEncodingDetectorParser
- All Implemented Interfaces:
Serializable, SelfConfiguring, Parser
- Direct Known Subclasses:
AbstractArchiveParser, EnviHeaderParser, JSoupParser, MIFParser, SourceCodeParser, TextAndCSVParser, TXTParser
Abstract base class for parsers that use the AutoDetectReader and need
to use an
EncodingDetector.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EncodingDetectorgetEncodingDetector(ParseContext parseContext) Look for an EncodingDetetor in the ParseContext.voidsetEncodingDetector(EncodingDetector encodingDetector) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Parser
getSupportedTypes, parse
-
Constructor Details
-
AbstractEncodingDetectorParser
public AbstractEncodingDetectorParser() -
AbstractEncodingDetectorParser
-
-
Method Details
-
getEncodingDetector
Look for an EncodingDetetor in the ParseContext. If it hasn't been passed in, use the original EncodingDetector from initialization.- Parameters:
parseContext-- Returns:
-
getEncodingDetector
-
setEncodingDetector
-