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 Boolean
getCloseEmptyElements()
Boolean
getRewriteEntities()
boolean
isRewriteEntities()
void
writeAttributes(NamedNodeMap attributes, Writer writer)
Write the element attributes.void
writeCharacterData(Node node, Writer writer)
void
writeElementCDATA(CDATASection cdata, Writer writer)
void
writeElementComment(Comment comment, Writer writer)
void
writeElementEntityRef(EntityReference entityRef, Writer writer)
void
writeEndElement(Element element, Writer writer)
void
writeStartElement(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()
-
-