|
Apache Tomcat 7.0.28 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 PrintWriter |
out
Print writer. |
| Constructor Summary | |
|---|---|
DOMWriter(boolean canonical)
Default constructor. |
|
DOMWriter(String encoding,
boolean canonical)
|
|
DOMWriter(Writer writer,
boolean canonical)
|
|
| Method Summary | |
|---|---|
boolean |
getQualifiedNames()
|
static String |
getWriterEncoding()
|
static boolean |
isValidJavaEncoding(String encoding)
|
protected String |
normalize(String s)
Normalizes the given string. |
void |
print(Node node)
Prints the specified node, recursively. |
void |
setQualifiedNames(boolean qualifiedNames)
|
static void |
setWriterEncoding(String encoding)
|
protected Attr[] |
sortAttributes(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 PrintWriter out
protected boolean canonical
| Constructor Detail |
|---|
public DOMWriter(String encoding,
boolean canonical)
throws UnsupportedEncodingException
UnsupportedEncodingException
public DOMWriter(boolean canonical)
throws UnsupportedEncodingException
UnsupportedEncodingException
public DOMWriter(Writer writer,
boolean canonical)
| Method Detail |
|---|
public boolean getQualifiedNames()
public void setQualifiedNames(boolean qualifiedNames)
public static String getWriterEncoding()
public static void setWriterEncoding(String encoding)
public static boolean isValidJavaEncoding(String encoding)
public void print(Node node)
protected Attr[] sortAttributes(NamedNodeMap attrs)
protected String normalize(String s)
|
Apache Tomcat 7.0.28 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||