Package com.peterphi.std.util
Class JDOMUtils
java.lang.Object
com.peterphi.std.util.JDOMUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic Document
convert
(org.jdom2.Document node) Convert a JDOM Document to a DOM Documentstatic Element
convert
(org.jdom2.Element node) Convert a JDOM Element to a DOM Elementstatic org.jdom2.Document
Convert a DOM Document to a JDOM Documentstatic org.jdom2.Element
Convert a DOM Element to a JDOM Elementstatic org.jdom2.Document
parse
(byte[] xml) static org.jdom2.Document
static org.jdom2.Document
parse
(InputStream is) static org.jdom2.Document
static org.jdom2.Document
static String
serialise
(org.jdom2.Document doc) static void
serialise
(org.jdom2.Document doc, OutputStream os) static void
static String
serialise
(org.jdom2.Element el) static void
serialise
(org.jdom2.Element el, OutputStream os) static void
static byte[]
serialiseBytes
(org.jdom2.Element el)
-
Method Details
-
convert
Convert a JDOM Document to a DOM Document- Parameters:
node
-- Returns:
- Throws:
org.jdom2.JDOMException
-
convert
Convert a DOM Document to a JDOM Document- Parameters:
node
-- Returns:
-
convert
Convert a JDOM Element to a DOM Element- Parameters:
node
-- Returns:
- Throws:
org.jdom2.JDOMException
-
convert
Convert a DOM Element to a JDOM Element- Parameters:
node
-- Returns:
-
parse
-
parse
public static org.jdom2.Document parse(byte[] xml) -
parse
-
parse
-
parse
-
serialise
-
serialise
-
serialise
-
serialise
-
serialiseBytes
public static byte[] serialiseBytes(org.jdom2.Element el) -
serialise
-
serialise
-