|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.catalina.util.DOMWriter
public class DOMWriter
A sample DOM writer. This sample program illustrates how to traverse a DOM tree in order to print a document that is parsed.
Field Summary | |
---|---|
protected boolean |
canonical
Canonical output. |
protected java.io.PrintWriter |
out
Print writer. |
Constructor Summary | |
---|---|
DOMWriter(boolean canonical)
Default constructor. |
|
DOMWriter(java.lang.String encoding,
boolean canonical)
|
|
DOMWriter(java.io.Writer writer,
boolean canonical)
|
Method Summary | |
---|---|
boolean |
getQualifiedNames()
|
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. |
void |
setQualifiedNames(boolean qualifiedNames)
|
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 |
---|
protected java.io.PrintWriter out
protected boolean canonical
Constructor Detail |
---|
public DOMWriter(java.lang.String encoding, boolean canonical) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public DOMWriter(boolean canonical) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public DOMWriter(java.io.Writer writer, boolean canonical)
Method Detail |
---|
public boolean getQualifiedNames()
public void setQualifiedNames(boolean qualifiedNames)
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)
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |