Class XmlWriter


  • public class XmlWriter
    extends java.lang.Object
    • Constructor Detail

      • XmlWriter

        public XmlWriter​(java.io.Writer w)
      • XmlWriter

        public XmlWriter​(java.io.Writer w,
                         boolean indent)
    • Method Detail

      • indent

        public XmlWriter indent​(int nb)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • newLine

        public XmlWriter newLine()
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • element

        public XmlWriter element​(java.lang.String name)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • attribute

        public XmlWriter attribute​(java.lang.String name,
                                   java.lang.Object value)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • end

        public XmlWriter end()
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • end

        public XmlWriter end​(boolean indent)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • text

        public XmlWriter text​(java.lang.Object value)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • textElement

        public XmlWriter textElement​(java.lang.String name,
                                     java.lang.Object value)
                              throws java.io.IOException
        Throws:
        java.io.IOException