Class SimpleXMLWriter

    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleXMLWriter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Flushes and finishes writing.
      java.lang.String encodeValue​(java.lang.Object val)
      Converts enum values to their integer equivalents, and also produces XML-sanitized strings for values
      void endElement()  
      void initialize​(java.io.Writer writer)  
      void initialize​(java.lang.String file)  
      void startElement​(java.lang.String name, boolean oneLine, boolean noValue, java.lang.String... attributes)  
      void startElement​(java.lang.String name, boolean oneLine, boolean noValue, java.util.List<java.lang.String> attributes)  
      void startElement​(java.lang.String name, java.lang.String... attributes)
      Writes a staring element, with optional attributes.
      void writeElement​(java.lang.String name, java.util.List<java.lang.String> attributes, java.lang.String value)
      Writes start and ending together on one line.
      protected void writeIndent​(boolean isEnding)  
      protected void writeLine​(java.lang.String value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleXMLWriter

        public SimpleXMLWriter()
    • Method Detail

      • initialize

        public void initialize​(java.lang.String file)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • initialize

        public void initialize​(java.io.Writer writer)
      • close

        public void close()
                   throws java.io.IOException
        Flushes and finishes writing.
        Throws:
        java.io.IOException
      • writeLine

        protected void writeLine​(java.lang.String value)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • writeIndent

        protected void writeIndent​(boolean isEnding)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • startElement

        public void startElement​(java.lang.String name,
                                 java.lang.String... attributes)
                          throws java.io.IOException
        Writes a staring element, with optional attributes. Attributes are an array, with a[x]=name,a[x+1]=value.
        Throws:
        java.io.IOException
      • startElement

        public void startElement​(java.lang.String name,
                                 boolean oneLine,
                                 boolean noValue,
                                 java.lang.String... attributes)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • startElement

        public void startElement​(java.lang.String name,
                                 boolean oneLine,
                                 boolean noValue,
                                 java.util.List<java.lang.String> attributes)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • endElement

        public void endElement()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • writeElement

        public void writeElement​(java.lang.String name,
                                 java.util.List<java.lang.String> attributes,
                                 java.lang.String value)
                          throws java.io.IOException
        Writes start and ending together on one line.
        Throws:
        java.io.IOException
      • encodeValue

        public java.lang.String encodeValue​(java.lang.Object val)
        Converts enum values to their integer equivalents, and also produces XML-sanitized strings for values