Interface IFileParser

    • 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