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 SummaryConstructors Constructor Description DomSerializer(Boolean closeEmptyElements, Boolean rewriteEntities)
 - 
Method SummaryAll 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- 
isRewriteEntitiespublic boolean isRewriteEntities() 
 - 
writeStartElementpublic void writeStartElement(Element element, Writer writer) throws IOException - Throws:
- IOException
 
 - 
writeAttributespublic 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.
 
 - 
writeEndElementpublic void writeEndElement(Element element, Writer writer) throws IOException - Throws:
- IOException
 
 - 
writeCharacterDatapublic void writeCharacterData(Node node, Writer writer) throws IOException - Throws:
- IOException
 
 - 
writeElementCommentpublic void writeElementComment(Comment comment, Writer writer) throws IOException - Throws:
- IOException
 
 - 
writeElementEntityRefpublic void writeElementEntityRef(EntityReference entityRef, Writer writer) throws IOException - Throws:
- IOException
 
 - 
writeElementCDATApublic void writeElementCDATA(CDATASection cdata, Writer writer) throws IOException - Throws:
- IOException
 
 - 
getCloseEmptyElementspublic Boolean getCloseEmptyElements() 
 - 
getRewriteEntitiespublic Boolean getRewriteEntities() 
 
- 
 
-