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 AbstractContentWriterLexical
printCDATAFields inherited from class 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 AbstractContentWriter
startElementEndMethods inherited from class AbstractContentWriterLexical
characters, characters, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntityMethods inherited from class AbstractContentWriterHandler
autoCloseStartElement, characters, charactersRaw, close, comment, comment, endDocument, endElement, endPrefixMapping, getPropertyConfig, ignorableWhitespace, ignorableWhitespace, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startElementNamespace, startElementNamespaceAll, startElementTag, startPrefixMapping, writeFlushMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContentHandler
characters, declaration, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMappingMethods inherited from interface ContentWriter
characters, characters, comment, ignorableWhitespace, ignorableWhitespaceMethods inherited from interface 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.
-