Class FDFParser

    • Constructor Detail

      • FDFParser

        public FDFParser​(String filename)
                  throws IOException
        Constructs parser for given file using memory buffer.
        Parameters:
        filename - the filename of the pdf to be parsed
        Throws:
        IOException - If something went wrong.
      • FDFParser

        public FDFParser​(File file)
                  throws IOException
        Constructs parser for given file using given buffer for temporary storage.
        Parameters:
        file - the pdf to be parsed
        Throws:
        IOException - If something went wrong.
      • FDFParser

        public FDFParser​(InputStream input)
                  throws IOException
        Constructor.
        Parameters:
        input - input stream representing the pdf.
        Throws:
        IOException - If something went wrong.
    • Method Detail

      • parse

        public void parse()
                   throws IOException
        This will parse the stream and populate the COSDocument object. This will close the stream when it is done parsing.
        Throws:
        IOException - If there is an error reading from the stream or corrupt data is found.