Package org.apache.tika.parser
Class AbstractEncodingDetectorParser
java.lang.Object
org.apache.tika.parser.AbstractParser
org.apache.tika.parser.AbstractEncodingDetectorParser
- All Implemented Interfaces:
Serializable
,Parser
- Direct Known Subclasses:
EnviHeaderParser
,HtmlParser
,MIFParser
,PackageParser
,SourceCodeParser
,TextAndCSVParser
,TXTParser
Abstract base class for parsers that use the AutoDetectReader and need
to use the
EncodingDetector
configured by TikaConfig
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected EncodingDetector
getEncodingDetector
(ParseContext parseContext) Look for an EncodingDetetor in the ParseContext.void
setEncodingDetector
(EncodingDetector encodingDetector) Methods inherited from class org.apache.tika.parser.AbstractParser
parse
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.tika.parser.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
-