Package lumis.util.parse
Interface IFileParser
-
- All Known Implementing Classes:
BaseFileParser
,HtmlParser
,TikaParser
,TxtParser
public interface IFileParser
Extracts text content from a file.- Since:
- 4.0.10
- Version:
- $Revision: 10458 $ $Date: 2009-06-02 15:49:09 -0300 (Tue, 02 Jun 2009) $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
extract(File inputFile)
String
extract(File inputFile, Charset charset)
String
extract(InputStream inputStream)
Extract text from an input stream.String
extract(InputStream inputtream, Charset charset)
-
-
-
Method Detail
-
extract
String extract(File inputFile) throws ParseException, FileNotFoundException
- Throws:
ParseException
FileNotFoundException
-
extract
String extract(File inputFile, Charset charset) throws ParseException, FileNotFoundException
- Throws:
ParseException
FileNotFoundException
-
extract
String extract(InputStream inputtream, Charset charset) throws ParseException
- Throws:
ParseException
-
extract
String extract(InputStream inputStream) throws ParseException, IOException
Extract text from an input stream.- Parameters:
inputStream
- the input stream.- Returns:
- the text extracted.
- Throws:
ParseException
- if an error occurred while parsing stream content.IOException
- if an I/O error occurred.- Since:
- 4.2.2
-
-