Package org.apache.tika.parser
Class StatefulParser
- java.lang.Object
-
- org.apache.tika.parser.ParserDecorator
-
- org.apache.tika.parser.StatefulParser
-
- All Implemented Interfaces:
Serializable
,Parser
public class StatefulParser extends ParserDecorator
The RecursiveParserWrapper wraps the parser sent into the parsecontext and then uses that parser to store state (among many other things).There are some use cases where regular parsers want to parse content inline (e.g. OCR), and their output should not be treated as coming from an embedded object.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StatefulParser(Parser parser)
Creates a decorator for the given parser.
-
Method Summary
-
Methods inherited from class org.apache.tika.parser.ParserDecorator
getDecorationName, getSupportedTypes, getWrappedParser, parse, withFallbacks, withoutTypes, withTypes
-
-
-
-
Constructor Detail
-
StatefulParser
public StatefulParser(Parser parser)
Creates a decorator for the given parser.- Parameters:
parser
- the parser instance to be decorated
-
-