com.lowagie.text.pdf
public class XfdfReader extends Object implements SimpleXMLDocHandler
| Field Summary | |
|---|---|
| Stack | fieldNames |
| HashMap | fields |
| Stack | fieldValues |
| String | fileSpec |
| boolean | foundRoot |
| Constructor Summary | |
|---|---|
| XfdfReader(String filename) Reads an XFDF form. | |
| XfdfReader(byte[] xfdfIn) Reads an XFDF form. | |
| Method Summary | |
|---|---|
| void | endDocument()
Called after the document is parsed. |
| void | endElement(String tag)
Called when an end tag is found. |
| String | getField(String name) Gets the field value. |
| HashMap | getFields() Gets all the fields. |
| String | getFieldValue(String name) Gets the field value or null if the field does not
exist or has no value defined. |
| String | getFileSpec() Gets the PDF file specification contained in the FDF. |
| void | startDocument()
Called when the document starts to be parsed. |
| void | startElement(String tag, HashMap h)
Called when a start tag is found. |
| void | text(String str)
Called when a text element is found. |
Parameters: filename the file name of the form
Throws: IOException on error
Parameters: xfdfIn the byte array with the form
Throws: IOException on error
Parameters: tag the tag name
Parameters: name the fully qualified field name
Returns: the field's value
PdfDictionary
with the field content.Returns: all the fields
null if the field does not
exist or has no value defined.Parameters: name the fully qualified field name
Returns: the field value or null
Returns: the PDF file specification contained in the FDF
Parameters: tag the tag name h the tag's attributes
Parameters: str the text element, probably a fragment.