Class 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 Detail

      • StatefulParser

        public StatefulParser​(Parser parser)
        Creates a decorator for the given parser.
        Parameters:
        parser - the parser instance to be decorated