Package org.red5.io.utils
Class DOM2Writer
java.lang.Object
org.red5.io.utils.DOM2Writer
This class is a utility to serialize a DOM node as XML. This class uses the
DOM Level 2
APIs. The main difference between this class and DOMWriter is that this class generates and prints out namespace declarations.- Author:
- Matthew J. Duftler (duftler@us.ibm.com), Joseph Kesselman
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
print
(Node node, PrintWriter out) Dumps DOM nodestatic void
serializeAsXML
(Node node, Writer writer) Serialize this node into the writer as XML.
-
Field Details
-
logger
private static org.slf4j.Logger logger
-
-
Constructor Details
-
DOM2Writer
public DOM2Writer()
-
-
Method Details
-
serializeAsXML
Serialize this node into the writer as XML.- Parameters:
writer
- Writer objectnode
- DOM node
-
print
Dumps DOM node- Parameters:
node
- Node to dumpout
- Writer object
-