Package org.apache.catalina.util
Class DOMWriter
java.lang.Object
org.apache.catalina.util.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 SummaryFieldsModifier and TypeFieldDescriptionprotected final booleanDeprecated.Will be made private in Tomcat 9.protected final PrintWriterDeprecated.Will be made private in Tomcat 9.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringDeprecated.Unused.protected StringDeprecated.Will be made private in Tomcat 9.voidPrints the specified node, recursively.protected Attr[]sortAttributes(NamedNodeMap attrs) Deprecated.Will be made private in Tomcat 9.
- 
Field Details- 
outDeprecated.Will be made private in Tomcat 9.Print writer.
- 
canonicalDeprecated.Will be made private in Tomcat 9.Canonical output.
 
- 
- 
Constructor Details- 
DOMWriter
- 
DOMWriterDeprecated.
 
- 
- 
Method Details- 
getWriterEncodingDeprecated.Unused. Will be removed in Tomcat 9.- Returns:
- Always UTF-8
 
- 
printPrints the specified node, recursively.- Parameters:
- node- The node to output
 
- 
sortAttributesDeprecated.Will be made private in Tomcat 9.Returns a sorted list of attributes.- Parameters:
- attrs- The map to sort
- Returns:
- a sorted attribute array
 
- 
normalizeDeprecated.Will be made private in Tomcat 9.Normalizes the given string.- Parameters:
- s- The string to escape
- Returns:
- the escaped string
 
 
-