com.lowagie.rups.model

Class XfaFile

public class XfaFile extends Object implements OutputStreamResource

Class that deals with the XFA file that can be inside a PDF file.
Field Summary
protected DocumentxfaDocument
The X4J Document object (XML).
Constructor Summary
XfaFile(OutputStreamResource resource)
Constructs an XFA file from an OutputStreamResource.
Method Summary
DocumentgetXfaDocument()
Getter for the XFA Document object.
voidwriteTo(OutputStream os)
Writes a formatted XML file to the OutputStream.

Field Detail

xfaDocument

protected Document xfaDocument
The X4J Document object (XML).

Constructor Detail

XfaFile

public XfaFile(OutputStreamResource resource)
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 DocumentException

Method Detail

getXfaDocument

public Document getXfaDocument()
Getter for the XFA Document object.

Returns: a Document object (X4J)

writeTo

public void writeTo(OutputStream os)
Writes a formatted XML file to the OutputStream.

See Also: writeTo