public class SAXToXMLWriter extends Object
| Constructor and Description |
|---|
SAXToXMLWriter(SAXVisitor owner,
boolean encodeSpecialChars)
Public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
writeEmptyElement(SAXElement element) |
void |
writeEmptyElement(SAXElement element,
Writer writer)
Write the element as an empty (closed) element to the supplied
Writer. |
void |
writeEndElement(SAXElement element) |
void |
writeEndElement(SAXElement element,
Writer writer)
Write the element end to the supplied
Writer. |
void |
writeStartElement(SAXElement element) |
void |
writeStartElement(SAXElement element,
Writer writer)
Write the element start to the supplied writer instance.
|
void |
writeText(SAXElement element) |
void |
writeText(SAXElement element,
Writer writer)
Write the element text to the supplied
Writer instance. |
void |
writeText(SAXText text,
SAXElement associatedElement) |
void |
writeText(SAXText text,
Writer writer)
Write the text event content to the supplied
Writer instance. |
void |
writeText(String text,
SAXElement associatedElement) |
void |
writeText(String text,
Writer writer)
Write the text content to the supplied
Writer. |
public SAXToXMLWriter(SAXVisitor owner, boolean encodeSpecialChars)
owner - The owning SAXVisitor instance.encodeSpecialChars - Encode special XML characters.public void writeStartElement(SAXElement element, Writer writer) throws IOException
element - The element.writer - The writer.IOException - Exception writing.public void writeStartElement(SAXElement element) throws IOException
IOExceptionpublic void writeEndElement(SAXElement element, Writer writer) throws IOException
Writer.element - The element.writer - The Writer.IOException - Exception writing.public void writeEndElement(SAXElement element) throws IOException
IOExceptionpublic void writeText(SAXElement element, Writer writer) throws IOException
Writer instance.
See about writing text.element - The element.writer - The Writer.IOException - Exception writing.public void writeText(SAXElement element) throws IOException
IOExceptionpublic void writeText(SAXText text, Writer writer) throws IOException
Writer instance.text - The SAXText event.writer - The Writer.IOException - Exception writing.public void writeText(SAXText text, SAXElement associatedElement) throws IOException
IOExceptionpublic void writeText(String text, Writer writer) throws IOException
Writer.text - The text.writer - The Writer.IOException - Exception writing.public void writeText(String text, SAXElement associatedElement) throws IOException
IOExceptionpublic void writeEmptyElement(SAXElement element, Writer writer) throws IOException
Writer.element - The element.writer - The Writer.IOException - Exception writing.public void writeEmptyElement(SAXElement element) throws IOException
IOExceptionCopyright © 2015. All rights reserved.