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
      java.lang.String extract​(java.io.File inputFile)  
      java.lang.String extract​(java.io.File inputFile, java.nio.charset.Charset charset)  
      java.lang.String extract​(java.io.InputStream inputStream)
      Extract text from an input stream.
      java.lang.String extract​(java.io.InputStream inputtream, java.nio.charset.Charset charset)  
    • Method Detail

      • extract

        java.lang.String extract​(java.io.File inputFile)
                          throws ParseException,
                                 java.io.FileNotFoundException
        Throws:
        ParseException
        java.io.FileNotFoundException
      • extract

        java.lang.String extract​(java.io.File inputFile,
                                 java.nio.charset.Charset charset)
                          throws ParseException,
                                 java.io.FileNotFoundException
        Throws:
        ParseException
        java.io.FileNotFoundException
      • extract

        java.lang.String extract​(java.io.InputStream inputtream,
                                 java.nio.charset.Charset charset)
                          throws ParseException
        Throws:
        ParseException
      • extract

        java.lang.String extract​(java.io.InputStream inputStream)
                          throws ParseException,
                                 java.io.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.
        java.io.IOException - if an I/O error occurred.
        Since:
        4.2.2