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 voidvalidateNotNull(Object obj, String message) static voidstatic voidwriteCDATASection(CDATASection cdataSection, Writer writer) static voidwriteComment(Comment comment, Writer writer) static voidwriteDocType(DocType docType, Writer writer) static voidwriteDocument(Document document, Writer writer) static voidwriteElement(Element element, Writer writer) static voidwriteProcessingInstruction(ProcessingInstruction processingInstruction, Writer writer) static voidstatic voidwriteXmlDeclaration(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
-