Class XmlWriter


  • public class XmlWriter
    extends java.lang.Object
    TODO document that output is UTF-8
    • Method Detail

      • of

        public static XmlWriter of​(java.io.Writer writer)
      • declaration

        public XmlWriter declaration()
      • begin

        public XmlWriter begin​(java.lang.String nodeName)
      • end

        public XmlWriter end​(java.lang.String unused)
        Same as end(). The parameter is unused. It's declared only to improve readability :
           xml.write("rules");
           xml.write("rule");
           // many other writes
           xml.end("rule");
           xml.end("rules");
         
      • prop

        public XmlWriter prop​(java.lang.String nodeName,
                              @Nullable
                              java.lang.String value)
      • prop

        public XmlWriter prop​(java.lang.String nodeName,
                              @Nullable
                              java.lang.Number value)
      • prop

        public XmlWriter prop​(java.lang.String nodeName,
                              boolean value)
      • prop

        public XmlWriter prop​(java.lang.String nodeName,
                              long value)
      • prop

        public XmlWriter prop​(java.lang.String nodeName,
                              double value)
      • close

        public void close()