Class CryptoParser

  • All Implemented Interfaces:
    Serializable, Parser

    public abstract class CryptoParser
    extends DelegatingParser
    Decrypts the incoming document stream and delegates further parsing to another parser instance. The decryption key and other settings as well as the delegate parser are taken from the parsing context.
    Apache Tika 0.10
    See Also:
    Serialized Form
    • Method Detail

      • parse

        public void parse​(InputStream stream,
                          ContentHandler handler,
                          Metadata metadata,
                          ParseContext context)
                   throws IOException,
        Description copied from class: DelegatingParser
        Looks up the delegate parser from the parsing context and delegates the parse operation to it. If a delegate parser is not found, then an empty XHTML document is returned.

        Subclasses should override this method to parse the top level structure of the given document stream. Parsed sub-streams can be passed to this base class method to be parsed by the configured delegate parser.

        Specified by:
        parse in interface Parser
        parse in class DelegatingParser
        stream - the document stream (input)
        handler - handler for the XHTML SAX events (output)
        metadata - document metadata (input and output)
        context - parse context
        IOException - if the document stream could not be read
        SAXException - if the SAX events could not be processed
        TikaException - if the document could not be parsed