Class SAX3WriterXml
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ContentWriter
,ContentHandler
,LexicalHandler
ContentWriterXml writes SAX content handler events to XML.
- Version:
- 1.0 Apr 17, 2005
- Author:
- Willem Cazander
-
Field Summary
Fields inherited from class org.x4o.sax3.io.AbstractContentWriterLexical
printCDATA
Fields inherited from class org.x4o.sax3.io.AbstractContentWriterHandler
DEFAULT_PROPERTY_CONFIG, OUTPUT_CHAR_NEWLINE, OUTPUT_CHAR_NULL, OUTPUT_CHAR_TAB, OUTPUT_COMMENT_AUTO_SPACE, OUTPUT_COMMENT_ENABLE, OUTPUT_ENCODING, OUTPUT_LINE_BREAK_WIDTH, OUTPUT_LINE_PER_ATTRIBUTE, PROLOG_LICENCE_ENABLE, PROLOG_LICENCE_ENCODING, PROLOG_LICENCE_FILE, PROLOG_LICENCE_RESOURCE, PROLOG_USER_COMMENT, PROLOG_USER_COMMENT_ENABLE, ROOT_END_APPEND_NEWLINE, ROOT_START_NAMESPACE_ALL
-
Constructor Summary
ConstructorsConstructorDescriptionCreates XmlWriter which prints to the OutputStream interface.SAX3WriterXml
(OutputStream out, String encoding) Creates XmlWriter which prints to the OutputStream interface.SAX3WriterXml
(Writer out) Creates XmlWriter which prints to the Writer interface.SAX3WriterXml
(Writer out, String encoding) Creates XmlWriter which prints to the Writer interface. -
Method Summary
Methods inherited from class org.x4o.sax3.io.AbstractContentWriter
startElementEnd
Methods inherited from class org.x4o.sax3.io.AbstractContentWriterLexical
characters, characters, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
Methods inherited from class org.x4o.sax3.io.AbstractContentWriterHandler
autoCloseStartElement, characters, charactersRaw, close, comment, comment, endDocument, endElement, endPrefixMapping, getPropertyConfig, ignorableWhitespace, ignorableWhitespace, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startElementNamespace, startElementNamespaceAll, startElementTag, startPrefixMapping, writeFlush
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
characters, declaration, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
Methods inherited from interface org.x4o.sax3.io.ContentWriter
characters, characters, comment, ignorableWhitespace, ignorableWhitespace
Methods inherited from interface org.xml.sax.ext.LexicalHandler
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
-
Constructor Details
-
SAX3WriterXml
-
SAX3WriterXml
Creates XmlWriter which prints to the Writer interface.- Parameters:
out
- The writer to print the xml to.
-
SAX3WriterXml
Creates XmlWriter which prints to the OutputStream interface.- Parameters:
out
- The OutputStream to write to.- Throws:
UnsupportedEncodingException
- Is thrown when UTF-8 can't we printed.
-
SAX3WriterXml
Creates XmlWriter which prints to the OutputStream interface.- Parameters:
out
- The OutputStream to write to.encoding
- The OutputStream encoding.- Throws:
UnsupportedEncodingException
- Is thrown when UTF-8 can't we printed.
-