public class SentimentAnalysisParser
extends org.apache.tika.parser.AbstractParser
implements org.apache.tika.config.Initializable
| Constructor and Description |
|---|
SentimentAnalysisParser() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkInitialization(org.apache.tika.config.InitializableProblemHandler handler) |
Set<org.apache.tika.mime.MediaType> |
getSupportedTypes(org.apache.tika.parser.ParseContext context)
Returns the types supported
|
void |
initialize(Map<String,org.apache.tika.config.Param> params) |
void |
parse(InputStream stream,
ContentHandler handler,
org.apache.tika.metadata.Metadata metadata,
org.apache.tika.parser.ParseContext context)
Performs the parse
|
public static final String DEF_MODEL
public void initialize(Map<String,org.apache.tika.config.Param> params) throws org.apache.tika.exception.TikaConfigException
initialize in interface org.apache.tika.config.Initializableorg.apache.tika.exception.TikaConfigExceptionpublic void checkInitialization(org.apache.tika.config.InitializableProblemHandler handler)
throws org.apache.tika.exception.TikaConfigException
checkInitialization in interface org.apache.tika.config.Initializableorg.apache.tika.exception.TikaConfigExceptionpublic Set<org.apache.tika.mime.MediaType> getSupportedTypes(org.apache.tika.parser.ParseContext context)
getSupportedTypes in interface org.apache.tika.parser.Parsercontext - the parse contextpublic void parse(InputStream stream, ContentHandler handler, org.apache.tika.metadata.Metadata metadata, org.apache.tika.parser.ParseContext context) throws IOException, SAXException, org.apache.tika.exception.TikaException
parse in interface org.apache.tika.parser.Parserstream - the inputhandler - the content handlermetadata - the metadata passedcontext - the context for the parserIOExceptionSAXExceptionorg.apache.tika.exception.TikaExceptionCopyright © 2007–2025 The Apache Software Foundation. All rights reserved.