Class JDOMUtil


  • public class JDOMUtil
    extends Object
    • Field Detail

      • DEFAULT_CHARSET

        public static final Charset DEFAULT_CHARSET
    • Constructor Detail

      • JDOMUtil

        public JDOMUtil()
    • Method Detail

      • loadDocument

        public static org.jdom.Document loadDocument​(File file)
                                              throws org.jdom.JDOMException,
                                                     IOException
        Throws:
        org.jdom.JDOMException
        IOException
      • createBuilder

        public static org.jdom.input.SAXBuilder createBuilder()
      • writeDocument

        public static void writeDocument​(org.jdom.Document document,
                                         File file)
                                  throws IOException
        Throws:
        IOException
      • createOutputter

        public static org.jdom.output.XMLOutputter createOutputter()
      • escapeText

        @NotNull
        public static String escapeText​(String text,
                                        boolean escapeSpaces,
                                        boolean escapeLineEnds)
      • escapeText

        @NotNull
        public static String escapeText​(String text,
                                        boolean escapeApostrophes,
                                        boolean escapeSpaces,
                                        boolean escapeLineEnds)