public class SentimentParser
extends org.apache.tika.parser.AbstractParser
| Modifier and Type | Field and Description |
|---|---|
static String |
HELLO_MIME_TYPE |
| Constructor and Description |
|---|
SentimentParser()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Set<org.apache.tika.mime.MediaType> |
getSupportedTypes(org.apache.tika.parser.ParseContext context)
Returns the types supported
|
void |
initialise(File file)
Initialises a sentiment parser
|
void |
initialise(URL url)
Initialises a sentiment parser
|
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 HELLO_MIME_TYPE
public void initialise(URL url)
url - the url to the modelpublic void initialise(File file)
file - the model filepublic Set<org.apache.tika.mime.MediaType> getSupportedTypes(org.apache.tika.parser.ParseContext context)
context - 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
stream - the inputhandler - the content handlermetadata - the metadata passedcontext - the context for the parserIOExceptionSAXExceptionorg.apache.tika.exception.TikaExceptionCopyright © 2016. All rights reserved.