public class LanguageDetectingParser extends DelegatingParser
Constructor and Description |
---|
LanguageDetectingParser() |
Modifier and Type | Method and Description |
---|---|
void |
parse(InputStream stream,
ContentHandler handler,
Metadata metadata,
ParseContext context)
Looks up the delegate parser from the parsing context and
delegates the parse operation to it.
|
getDelegateParser, getSupportedTypes
parse
public void parse(InputStream stream, ContentHandler handler, Metadata metadata, ParseContext context) throws SAXException, IOException, TikaException
DelegatingParser
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.
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 contextSAXException
- if the SAX events could not be processedIOException
- if the document stream could not be readTikaException
- if the document could not be parsedCopyright © 2007–1969 The Apache Software Foundation. All rights reserved.