lumis.util.parse
Interface IFileParser

Package class diagram package IFileParser
All Known Implementing Classes:
BaseFileParser, DocParser, HtmlParser, PdfParser, TikaParser, TxtParser

public interface IFileParser

Extracts text content from a file.

Since:
4.0.10

Method Summary
 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


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.