Package com.itextpdf.forms.xfdf
Class XfdfFileUtils
- java.lang.Object
-
- com.itextpdf.forms.xfdf.XfdfFileUtils
-
final class XfdfFileUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description private
XfdfFileUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static org.w3c.dom.Document
createNewXfdfDocument()
Creates a new xml-styled document for writing xfdf info.(package private) static org.w3c.dom.Document
createXfdfDocumentFromStream(java.io.InputStream inputStream)
Creates a new xfdf document based on given input stream.(package private) static void
saveXfdfDocumentToFile(org.w3c.dom.Document document, java.io.OutputStream outputStream)
Saves the info from XML-styledDocument
toOutputStream
.
-
-
-
Method Detail
-
createNewXfdfDocument
static org.w3c.dom.Document createNewXfdfDocument()
Creates a new xml-styled document for writing xfdf info.- Throws:
javax.xml.parsers.ParserConfigurationException
- in case of failure to create a new document.
-
createXfdfDocumentFromStream
static org.w3c.dom.Document createXfdfDocumentFromStream(java.io.InputStream inputStream)
Creates a new xfdf document based on given input stream.- Parameters:
inputStream
- containing xfdf info.
-
saveXfdfDocumentToFile
static void saveXfdfDocumentToFile(org.w3c.dom.Document document, java.io.OutputStream outputStream) throws javax.xml.transform.TransformerException
Saves the info from XML-styledDocument
toOutputStream
.- Parameters:
document
- inputDocument
that contains XFDF infooutputStream
- the output stream- Throws:
javax.xml.transform.TransformerException
-
-