Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.webdav.lib.util
Class DOMWriter  view DOMWriter download DOMWriter.java

java.lang.Object
  extended byorg.apache.webdav.lib.util.DOMWriter

public class DOMWriter
extends java.lang.Object


Field Summary
protected  boolean canonical
          Canonical output.
private static java.lang.String[] MIME2JAVA_ENCODINGS
           
protected  java.io.PrintWriter out
          Print writer.
private static java.lang.String PRINTWRITER_ENCODING
          Default Encoding
 
Constructor Summary
DOMWriter(boolean canonical)
          Default constructor.
DOMWriter(java.lang.String encoding, boolean canonical)
           
DOMWriter(java.io.Writer writer, boolean canonical)
           
 
Method Summary
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

PRINTWRITER_ENCODING

private static java.lang.String PRINTWRITER_ENCODING
Default Encoding


MIME2JAVA_ENCODINGS

private static java.lang.String[] MIME2JAVA_ENCODINGS

out

protected java.io.PrintWriter out
Print writer.


canonical

protected boolean canonical
Canonical output.

Constructor Detail

DOMWriter

public DOMWriter(java.lang.String encoding,
                 boolean canonical)
          throws java.io.UnsupportedEncodingException

DOMWriter

public DOMWriter(boolean canonical)
          throws java.io.UnsupportedEncodingException
Default constructor.


DOMWriter

public DOMWriter(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.