public class PropertyWriter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
canonical
Canonical output.
|
protected java.io.PrintWriter |
out
Print writer.
|
Constructor and Description |
---|
PropertyWriter(boolean canonical)
Default constructor.
|
PropertyWriter(java.lang.String encoding,
boolean canonical) |
PropertyWriter(java.io.Writer writer,
boolean canonical) |
Modifier and Type | Method and 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.
|
protected java.io.PrintWriter out
protected boolean canonical
public PropertyWriter(java.lang.String encoding, boolean canonical) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public PropertyWriter(boolean canonical) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public PropertyWriter(java.io.Writer writer, boolean canonical)
public static java.lang.String getWriterEncoding()
public static void setWriterEncoding(java.lang.String encoding)
public static boolean isValidJavaEncoding(java.lang.String encoding)
public void print(org.w3c.dom.Node node)
protected org.w3c.dom.Attr[] sortAttributes(org.w3c.dom.NamedNodeMap attrs)
protected java.lang.String normalize(java.lang.String s)