Class 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-styled Document to OutputStream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XfdfFileUtils

        private XfdfFileUtils()
    • 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-styled Document to OutputStream.
        Parameters:
        document - input Document that contains XFDF info
        outputStream - the output stream
        Throws:
        javax.xml.transform.TransformerException