org.attoparser.markup.xml
Class XmlDOMWriter

Object
  extended by org.attoparser.markup.dom.AbstractDOMWriter
      extended by org.attoparser.markup.xml.XmlDOMWriter
All Implemented Interfaces:
IDOMWriter

public final class XmlDOMWriter
extends AbstractDOMWriter

Specialization of XmlDOMWriter for writing attoDOM trees as XML markup.

Since:
1.1
Author:
Daniel Fernández

Constructor Summary
XmlDOMWriter()
           Create a new instance of this DOM writer.
 
Method Summary
 void writeCDATASection(ICDATASection cdataSection, Writer writer)
           
 void writeComment(IComment comment, Writer writer)
           
 void writeDocType(IDocType docType, Writer writer)
           
 void writeDocument(IDocument document, Writer writer)
           
 void writeElement(IElement element, Writer writer)
           
 void writeProcessingInstruction(IProcessingInstruction processingInstruction, Writer writer)
           
 void writeText(IText text, Writer writer)
           
 void writeXmlDeclaration(IXmlDeclaration xmlDeclaration, Writer writer)
           
 
Methods inherited from class org.attoparser.markup.dom.AbstractDOMWriter
write
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlDOMWriter

public XmlDOMWriter()

Create a new instance of this DOM writer.

Method Detail

writeCDATASection

public void writeCDATASection(ICDATASection cdataSection,
                              Writer writer)
                       throws IOException
Specified by:
writeCDATASection in class AbstractDOMWriter
Throws:
IOException

writeComment

public void writeComment(IComment comment,
                         Writer writer)
                  throws IOException
Specified by:
writeComment in class AbstractDOMWriter
Throws:
IOException

writeDocType

public void writeDocType(IDocType docType,
                         Writer writer)
                  throws IOException
Specified by:
writeDocType in class AbstractDOMWriter
Throws:
IOException

writeDocument

public void writeDocument(IDocument document,
                          Writer writer)
                   throws IOException
Specified by:
writeDocument in class AbstractDOMWriter
Throws:
IOException

writeElement

public void writeElement(IElement element,
                         Writer writer)
                  throws IOException
Specified by:
writeElement in class AbstractDOMWriter
Throws:
IOException

writeProcessingInstruction

public void writeProcessingInstruction(IProcessingInstruction processingInstruction,
                                       Writer writer)
                                throws IOException
Specified by:
writeProcessingInstruction in class AbstractDOMWriter
Throws:
IOException

writeText

public void writeText(IText text,
                      Writer writer)
               throws IOException
Specified by:
writeText in class AbstractDOMWriter
Throws:
IOException

writeXmlDeclaration

public void writeXmlDeclaration(IXmlDeclaration xmlDeclaration,
                                Writer writer)
                         throws IOException
Specified by:
writeXmlDeclaration in class AbstractDOMWriter
Throws:
IOException


Copyright © 2012 The ATTOPARSER team. All Rights Reserved.