Package com.itextpdf.forms.xfdf
Class XfdfFileUtils
java.lang.Object
com.itextpdf.forms.xfdf.XfdfFileUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static Document
Creates a new xml-styled document for writing xfdf info.(package private) static Document
createXfdfDocumentFromStream
(InputStream inputStream) Creates a new xfdf document based on given input stream.(package private) static void
saveXfdfDocumentToFile
(Document document, OutputStream outputStream) Saves the info from XML-styledDocument
toOutputStream
.
-
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-styledDocument
toOutputStream
.- Parameters:
document
- inputDocument
that contains XFDF infooutputStream
- the output stream- Throws:
TransformerException
-