public class ParsingExample extends Object
| Constructor and Description |
|---|
ParsingExample() |
| Modifier and Type | Method and Description |
|---|---|
String |
parseExample()
Example of how to use Tika to parse an file when you do not know its file type
ahead of time.
|
String |
parseToStringExample()
Example of how to use Tika's parseToString method to parse the content of a file,
and return any text found.
|
public String parseToStringExample() throws IOException, SAXException, org.apache.tika.exception.TikaException
IOExceptionSAXExceptionorg.apache.tika.exception.TikaExceptionpublic String parseExample() throws IOException, SAXException, org.apache.tika.exception.TikaException
IOExceptionSAXExceptionorg.apache.tika.exception.TikaExceptionCopyright © 2007-2015 The Apache Software Foundation. All Rights Reserved.