Package org.openpdf.rups.model
Class XfaFile
java.lang.Object
org.openpdf.rups.model.XfaFile
- All Implemented Interfaces:
OutputStreamResource
Class that deals with the XFA file that can be inside a PDF file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.dom4j.DocumentThe X4J Document object (XML). -
Constructor Summary
ConstructorsConstructorDescriptionXfaFile(OutputStreamResource resource) Constructs an XFA file from an OutputStreamResource. -
Method Summary
Modifier and TypeMethodDescriptionorg.dom4j.DocumentGetter for the XFA Document object.voidwriteTo(OutputStream os) Writes a formatted XML file to the OutputStream.
-
Field Details
-
xfaDocument
protected org.dom4j.Document xfaDocumentThe X4J Document object (XML).
-
-
Constructor Details
-
XfaFile
Constructs an XFA file from an OutputStreamResource. This resource can be an XML file or a node in a RUPS application.- Parameters:
resource- the XFA resource- Throws:
IOException- thrown when an I/O operation goes wrongorg.dom4j.DocumentException- thrown when something goes wrong with a Document
-
-
Method Details
-
getXfaDocument
public org.dom4j.Document getXfaDocument()Getter for the XFA Document object.- Returns:
- a Document object (X4J)
-
writeTo
Writes a formatted XML file to the OutputStream.- Specified by:
writeToin interfaceOutputStreamResource- Parameters:
os- the OutputStream to which the XML is written.- Throws:
IOException- usual exception when there's a problem writing to an OutputStream- See Also:
-