org.apache.webdav.lib.util
Class PropertyWriter
java.lang.Object
org.apache.webdav.lib.util.PropertyWriter
public class PropertyWriter
extends java.lang.Object
protected boolean | canonical - Canonical output.
|
protected PrintWriter | out - Print writer.
|
canonical
protected boolean canonical
Canonical output.
out
protected PrintWriter out
Print writer.
PropertyWriter
public PropertyWriter(String encoding,
boolean canonical)
throws UnsupportedEncodingException
PropertyWriter
public PropertyWriter(Writer writer,
boolean canonical)
PropertyWriter
public PropertyWriter(boolean canonical)
throws UnsupportedEncodingException
Default constructor.
getWriterEncoding
public static String getWriterEncoding()
isValidJavaEncoding
public static boolean isValidJavaEncoding(String encoding)
normalize
protected String normalize(String s)
Normalizes the given string.
print
public void print(Node node)
Prints the specified node, recursively.
setWriterEncoding
public static void setWriterEncoding(String encoding)
sortAttributes
protected Attr[] sortAttributes(NamedNodeMap attrs)
Returns a sorted list of attributes.