public final class DOMWriter extends Object
Static utility class able to write a DOM tree (or a fragment of it) as markup.
Modifier and Type | Method and Description |
---|---|
static void |
write(INode node,
Writer writer) |
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 |
writeText(Text text,
Writer writer) |
static void |
writeXmlDeclaration(XmlDeclaration xmlDeclaration,
Writer writer) |
public static void write(INode node, Writer writer) throws IOException
IOException
public static void writeCDATASection(CDATASection cdataSection, Writer writer) throws IOException
IOException
public static void writeComment(Comment comment, Writer writer) throws IOException
IOException
public static void writeDocType(DocType docType, Writer writer) throws IOException
IOException
public static void writeDocument(Document document, Writer writer) throws IOException
IOException
public static void writeElement(Element element, Writer writer) throws IOException
IOException
public static void writeProcessingInstruction(ProcessingInstruction processingInstruction, Writer writer) throws IOException
IOException
public static void writeText(Text text, Writer writer) throws IOException
IOException
public static void writeXmlDeclaration(XmlDeclaration xmlDeclaration, Writer writer) throws IOException
IOException
Copyright © 2023 The ATTOPARSER team. All rights reserved.