Class FDFParser

    • Constructor Detail

      • FDFParser

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

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

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

      • isCatalog

        protected final boolean isCatalog​(COSDictionary dictionary)
        Tell if the dictionary is a FDF catalog.
        Overrides:
        isCatalog in class COSParser
        Parameters:
        dictionary -
        Returns:
      • parse

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