Class XMLUtils


  • public class XMLUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      XMLUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void ElementToStream​(org.w3c.dom.Element element, java.io.OutputStream out)  
      static org.xml.sax.InputSource getInputSourceFromURI​(java.lang.String uri)
      Utility to get the bytes uri.
      static java.lang.String PrettyDocumentToString​(org.w3c.dom.Document doc)  
      static org.xml.sax.InputSource sourceToInputSource​(javax.xml.transform.Source source)
      Utility to get the bytes uri
      • Methods inherited from class java.lang.Object

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

      • XMLUtils

        public XMLUtils()
    • Method Detail

      • PrettyDocumentToString

        public static java.lang.String PrettyDocumentToString​(org.w3c.dom.Document doc)
      • ElementToStream

        public static void ElementToStream​(org.w3c.dom.Element element,
                                           java.io.OutputStream out)
      • sourceToInputSource

        public static org.xml.sax.InputSource sourceToInputSource​(javax.xml.transform.Source source)
        Utility to get the bytes uri
        Parameters:
        source - the resource to get
      • getInputSourceFromURI

        public static org.xml.sax.InputSource getInputSourceFromURI​(java.lang.String uri)
        Utility to get the bytes uri. Does NOT handle authenticated URLs, use getInputSourceFromURI(uri, username, password)
        Parameters:
        uri - the resource to get