public class TikaParser extends Object implements IFileParser
IFileParser
to deal with Parser
for most content-types.Constructor and Description |
---|
TikaParser() |
Modifier and Type | Method and Description |
---|---|
String |
extract(File inputFile) |
String |
extract(File inputFile,
Charset charset) |
String |
extract(InputStream inputStream)
Extract text from an input stream.
|
String |
extract(InputStream inputStream,
Charset charset) |
public String extract(File inputFile) throws ParseException, FileNotFoundException
extract
in interface IFileParser
ParseException
FileNotFoundException
public String extract(File inputFile, Charset charset) throws ParseException, FileNotFoundException
extract
in interface IFileParser
ParseException
FileNotFoundException
public String extract(InputStream inputStream, Charset charset) throws ParseException
extract
in interface IFileParser
ParseException
public String extract(InputStream inputStream) throws ParseException, IOException
IFileParser
extract
in interface IFileParser
inputStream
- the input stream.ParseException
- if an error occurred while parsing
stream content.IOException
- if an I/O error occurred.LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.