Class XfdfReader

    • Constructor Detail

      • XfdfReader

        public XfdfReader​(String filename)
                   throws IOException
        Reads an XFDF form.
        Parameters:
        filename - the file name of the form
        Throws:
        IOException - on error
      • XfdfReader

        public XfdfReader​(byte[] xfdfIn)
                   throws IOException
        Reads an XFDF form.
        Parameters:
        xfdfIn - the byte array with the form
        Throws:
        IOException - on error
    • Method Detail

      • getField

        public String getField​(String name)
        Gets the field value.
        Parameters:
        name - the fully qualified field name
        Returns:
        the field's value
      • getFieldValue

        public String getFieldValue​(String name)
        Gets the field value or null if the field does not exist or has no value defined.
        Specified by:
        getFieldValue in interface FieldReader
        Parameters:
        name - the fully qualified field name
        Returns:
        the field value or null
      • getListValues

        public List<String> getListValues​(String name)
        Gets the field values for a list or null if the field does not exist or has no value defined.
        Specified by:
        getListValues in interface FieldReader
        Parameters:
        name - the fully qualified field name
        Returns:
        the field values or null
        Since:
        2.1.4
      • getFileSpec

        public String getFileSpec()
        Gets the PDF file specification contained in the FDF.
        Returns:
        the PDF file specification contained in the FDF
      • endElement

        public void endElement​(String tag)
        Called when an end tag is found.
        Specified by:
        endElement in interface SimpleXMLDocHandler
        Parameters:
        tag - the tag name
      • text

        public void text​(String str)
        Called when a text element is found.
        Specified by:
        text in interface SimpleXMLDocHandler
        Parameters:
        str - the text element, probably a fragment.