public class TikaTool
extends opennlp.tools.cmdline.BasicCmdLineTool
| Constructor and Description |
|---|
TikaTool()
The constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHelp()
Help method
|
static void |
main(String[] args) |
void |
process(InputStream input,
OutputStream output,
org.apache.tika.metadata.Metadata metadata)
Performs the analysis
|
void |
process(String fileName,
String model)
Performs the analysis
|
void |
run(String[] args)
Runs the parser and performs analysis
|
public void process(String fileName, String model) throws MalformedURLException
fileName - the file with text to be analysedmodel - the analysis model to be usedMalformedURLExceptionpublic void process(InputStream input, OutputStream output, org.apache.tika.metadata.Metadata metadata) throws IOException, SAXException, org.apache.tika.exception.TikaException
input - the inputoutput - the outputmetadata - the metadata to be usedIOExceptionSAXExceptionorg.apache.tika.exception.TikaExceptionpublic String getHelp()
getHelp in class opennlp.tools.cmdline.CmdLineToolpublic void run(String[] args)
run in class opennlp.tools.cmdline.BasicCmdLineToolargs - arguments requiredCopyright © 2016. All rights reserved.