|
Apache Tomcat 7.0.42 | ||||||||
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)
Deprecated. Unused - will be removed in 8.0.x |
|
DOMWriter(String encoding,
boolean canonical)
Deprecated. Unused - will be removed in 8.0.x |
|
DOMWriter(Writer writer,
boolean canonical)
|
Method Summary | |
---|---|
boolean |
getQualifiedNames()
Deprecated. Unused - will be removed in 8.0.x |
static String |
getWriterEncoding()
|
static boolean |
isValidJavaEncoding(String encoding)
Deprecated. Unused - will be removed in 8.0.x |
protected String |
normalize(String s)
Normalizes the given string. |
void |
print(Node node)
Prints the specified node, recursively. |
void |
setQualifiedNames(boolean qualifiedNames)
Deprecated. Unnecessary - will be removed in 8.0.x |
static void |
setWriterEncoding(String encoding)
Deprecated. Unused - will be removed in 8.0.x |
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 |
---|
@Deprecated public DOMWriter(String encoding, boolean canonical) throws UnsupportedEncodingException
UnsupportedEncodingException
@Deprecated public DOMWriter(boolean canonical) throws UnsupportedEncodingException
UnsupportedEncodingException
public DOMWriter(Writer writer, boolean canonical)
Method Detail |
---|
@Deprecated public boolean getQualifiedNames()
@Deprecated public void setQualifiedNames(boolean qualifiedNames)
public static String getWriterEncoding()
@Deprecated public static void setWriterEncoding(String encoding)
@Deprecated 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.42 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |