Class XfdfFileUtils
java.lang.Object
com.itextpdf.forms.xfdf.XfdfFileUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static DocumentCreates a new xml-styled document for writing xfdf info.(package private) static DocumentcreateXfdfDocumentFromStream(InputStream inputStream) Creates a new xfdf document based on given input stream.(package private) static voidsaveXfdfDocumentToFile(Document document, OutputStream outputStream) Saves the info from XML-styledDocumenttoOutputStream.
-
Constructor Details
-
XfdfFileUtils
private XfdfFileUtils()
-
-
Method Details
-
createNewXfdfDocument
Creates a new xml-styled document for writing xfdf info.- Throws:
ParserConfigurationException- in case of failure to create a new document.
-
createXfdfDocumentFromStream
Creates a new xfdf document based on given input stream.- Parameters:
inputStream- containing xfdf info.
-
saveXfdfDocumentToFile
static void saveXfdfDocumentToFile(Document document, OutputStream outputStream) throws TransformerException Saves the info from XML-styledDocumenttoOutputStream.- Parameters:
document- inputDocumentthat contains XFDF infooutputStream- the output stream- Throws:
TransformerException
-