Package org.apache.catalina.util
Class DOMWriter
- java.lang.Object
-
- org.apache.catalina.util.DOMWriter
-
public class DOMWriter extends java.lang.ObjectA sample DOM writer. This sample program illustrates how to traverse a DOM tree in order to print a document that is parsed.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.lang.StringgetWriterEncoding()Deprecated.Unused.protected java.lang.Stringnormalize(java.lang.String s)Deprecated.Will be made private in Tomcat 9.voidprint(org.w3c.dom.Node node)Prints the specified node, recursively.protected org.w3c.dom.Attr[]sortAttributes(org.w3c.dom.NamedNodeMap attrs)Deprecated.Will be made private in Tomcat 9.
-
-
-
Method Detail
-
getWriterEncoding
@Deprecated public static java.lang.String getWriterEncoding()
Deprecated.Unused. Will be removed in Tomcat 9.- Returns:
- Always
UTF-8
-
print
public void print(org.w3c.dom.Node node)
Prints the specified node, recursively.- Parameters:
node- The node to output
-
sortAttributes
@Deprecated protected org.w3c.dom.Attr[] sortAttributes(org.w3c.dom.NamedNodeMap attrs)
Deprecated.Will be made private in Tomcat 9.Returns a sorted list of attributes.- Parameters:
attrs- The map to sort- Returns:
- a sorted attribute array
-
normalize
@Deprecated protected java.lang.String normalize(java.lang.String s)
Deprecated.Will be made private in Tomcat 9.Normalizes the given string.- Parameters:
s- The string to escape- Returns:
- the escaped string
-
-