|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lowagie.text.pdf.XfdfReader
public class XfdfReader
Reads a XFDF.
| Field Summary | |
|---|---|
private Stack |
fieldNames
|
(package private) HashMap |
fields
|
private Stack |
fieldValues
|
(package private) String |
fileSpec
|
private boolean |
foundRoot
|
| Constructor Summary | |
|---|---|
XfdfReader(byte[] xfdfIn)
Reads an XFDF form. |
|
XfdfReader(String filename)
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private boolean foundRoot
private Stack fieldNames
private Stack fieldValues
HashMap fields
String fileSpec
| Constructor Detail |
|---|
public XfdfReader(String filename)
throws IOException
filename - the file name of the form
IOException - on error
public XfdfReader(byte[] xfdfIn)
throws IOException
xfdfIn - the byte array with the form
IOException - on error| Method Detail |
|---|
public HashMap getFields()
PdfDictionary
with the field content.
public String getField(String name)
name - the fully qualified field name
public String getFieldValue(String name)
null if the field does not
exist or has no value defined.
name - the fully qualified field name
nullpublic String getFileSpec()
public void startElement(String tag,
HashMap h)
startElement in interface SimpleXMLDocHandlertag - the tag nameh - the tag's attributespublic void endElement(String tag)
endElement in interface SimpleXMLDocHandlertag - the tag namepublic void startDocument()
startDocument in interface SimpleXMLDocHandlerpublic void endDocument()
endDocument in interface SimpleXMLDocHandlerpublic void text(String str)
text in interface SimpleXMLDocHandlerstr - the text element, probably a fragment.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||