Package org.attoparser.dom
Class DOMWriter
java.lang.Object
org.attoparser.dom.DOMWriter
Static utility class able to write a DOM tree (or a fragment of it) as markup.
- Since:
- 2.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
validateNotNull
(Object obj, String message) static void
static void
writeCDATASection
(CDATASection cdataSection, Writer writer) static void
writeComment
(Comment comment, Writer writer) static void
writeDocType
(DocType docType, Writer writer) static void
writeDocument
(Document document, Writer writer) static void
writeElement
(Element element, Writer writer) static void
writeProcessingInstruction
(ProcessingInstruction processingInstruction, Writer writer) static void
static void
writeXmlDeclaration
(XmlDeclaration xmlDeclaration, Writer writer)
-
Constructor Details
-
DOMWriter
private DOMWriter()
-
-
Method Details
-
write
- Throws:
IOException
-
writeCDATASection
- Throws:
IOException
-
writeComment
- Throws:
IOException
-
writeDocType
- Throws:
IOException
-
writeDocument
- Throws:
IOException
-
writeElement
- Throws:
IOException
-
writeProcessingInstruction
public static void writeProcessingInstruction(ProcessingInstruction processingInstruction, Writer writer) throws IOException - Throws:
IOException
-
writeText
- Throws:
IOException
-
writeXmlDeclaration
public static void writeXmlDeclaration(XmlDeclaration xmlDeclaration, Writer writer) throws IOException - Throws:
IOException
-
validateNotNull
-