Class JDOMUtils

java.lang.Object
com.peterphi.std.util.JDOMUtils

public class JDOMUtils extends Object
  • Method Details

    • convert

      public static Document convert(org.jdom2.Document node) throws org.jdom2.JDOMException
      Convert a JDOM Document to a DOM Document
      Parameters:
      node -
      Returns:
      Throws:
      org.jdom2.JDOMException
    • convert

      public static org.jdom2.Document convert(Document node)
      Convert a DOM Document to a JDOM Document
      Parameters:
      node -
      Returns:
    • convert

      public static Element convert(org.jdom2.Element node) throws org.jdom2.JDOMException
      Convert a JDOM Element to a DOM Element
      Parameters:
      node -
      Returns:
      Throws:
      org.jdom2.JDOMException
    • convert

      public static org.jdom2.Element convert(Element node)
      Convert a DOM Element to a JDOM Element
      Parameters:
      node -
      Returns:
    • parse

      public static org.jdom2.Document parse(String xml)
    • parse

      public static org.jdom2.Document parse(byte[] xml)
    • parse

      public static org.jdom2.Document parse(File file)
    • parse

      public static org.jdom2.Document parse(InputStream is)
    • parse

      public static org.jdom2.Document parse(Reader reader)
    • serialise

      public static String serialise(org.jdom2.Document doc)
    • serialise

      public static void serialise(org.jdom2.Document doc, Writer writer)
    • serialise

      public static void serialise(org.jdom2.Document doc, OutputStream os)
    • serialise

      public static String serialise(org.jdom2.Element el)
    • serialiseBytes

      public static byte[] serialiseBytes(org.jdom2.Element el)
    • serialise

      public static void serialise(org.jdom2.Element el, Writer writer)
    • serialise

      public static void serialise(org.jdom2.Element el, OutputStream os)