Package org.smooks.io
Class DomSerializer
- java.lang.Object
-
- org.smooks.io.DomSerializer
-
public class DomSerializer extends Object
Default SerializationUnit implementation. Default SerialisationUnit where none defined.- Author:
- tfennelly
-
-
Constructor Summary
Constructors Constructor Description DomSerializer(Boolean closeEmptyElements, Boolean rewriteEntities)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangetCloseEmptyElements()BooleangetRewriteEntities()booleanisRewriteEntities()voidwriteAttributes(NamedNodeMap attributes, Writer writer)Write the element attributes.voidwriteCharacterData(Node node, Writer writer)voidwriteElementCDATA(CDATASection cdata, Writer writer)voidwriteElementComment(Comment comment, Writer writer)voidwriteElementEntityRef(EntityReference entityRef, Writer writer)voidwriteEndElement(Element element, Writer writer)voidwriteStartElement(Element element, Writer writer)
-
-
-
Method Detail
-
isRewriteEntities
public boolean isRewriteEntities()
-
writeStartElement
public void writeStartElement(Element element, Writer writer) throws IOException
- Throws:
IOException
-
writeAttributes
public void writeAttributes(NamedNodeMap attributes, Writer writer) throws IOException
Write the element attributes.- Parameters:
attributes- The element attibutes.writer- The writer to be written to.- Throws:
IOException- Exception writing output.
-
writeEndElement
public void writeEndElement(Element element, Writer writer) throws IOException
- Throws:
IOException
-
writeCharacterData
public void writeCharacterData(Node node, Writer writer) throws IOException
- Throws:
IOException
-
writeElementComment
public void writeElementComment(Comment comment, Writer writer) throws IOException
- Throws:
IOException
-
writeElementEntityRef
public void writeElementEntityRef(EntityReference entityRef, Writer writer) throws IOException
- Throws:
IOException
-
writeElementCDATA
public void writeElementCDATA(CDATASection cdata, Writer writer) throws IOException
- Throws:
IOException
-
getCloseEmptyElements
public Boolean getCloseEmptyElements()
-
getRewriteEntities
public Boolean getRewriteEntities()
-
-