Class PropertyWriter


  • public class PropertyWriter
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean canonical
      Canonical output.
      protected java.io.PrintWriter out
      Print writer.
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertyWriter​(boolean canonical)
      Default constructor.
      PropertyWriter​(java.io.Writer writer, boolean canonical)  
      PropertyWriter​(java.lang.String encoding, boolean canonical)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getWriterEncoding()  
      static boolean isValidJavaEncoding​(java.lang.String encoding)  
      protected java.lang.String normalize​(java.lang.String s)
      Normalizes the given string.
      void print​(org.w3c.dom.Node node)
      Prints the specified node, recursively.
      static void setWriterEncoding​(java.lang.String encoding)  
      protected org.w3c.dom.Attr[] sortAttributes​(org.w3c.dom.NamedNodeMap attrs)
      Returns a sorted list of attributes.
      • Methods inherited from class java.lang.Object

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

      • out

        protected java.io.PrintWriter out
        Print writer.
      • canonical

        protected boolean canonical
        Canonical output.
    • Constructor Detail

      • PropertyWriter

        public PropertyWriter​(java.lang.String encoding,
                              boolean canonical)
                       throws java.io.UnsupportedEncodingException
        Throws:
        java.io.UnsupportedEncodingException
      • PropertyWriter

        public PropertyWriter​(boolean canonical)
                       throws java.io.UnsupportedEncodingException
        Default constructor.
        Throws:
        java.io.UnsupportedEncodingException
      • PropertyWriter

        public PropertyWriter​(java.io.Writer writer,
                              boolean canonical)
    • Method Detail

      • getWriterEncoding

        public static java.lang.String getWriterEncoding()
      • setWriterEncoding

        public static void setWriterEncoding​(java.lang.String encoding)
      • isValidJavaEncoding

        public static boolean isValidJavaEncoding​(java.lang.String encoding)
      • print

        public void print​(org.w3c.dom.Node node)
        Prints the specified node, recursively.
      • sortAttributes

        protected org.w3c.dom.Attr[] sortAttributes​(org.w3c.dom.NamedNodeMap attrs)
        Returns a sorted list of attributes.
      • normalize

        protected java.lang.String normalize​(java.lang.String s)
        Normalizes the given string.