Class AbstractContentWriter
java.lang.Object
org.x4o.sax3.io.AbstractContentWriterHandler
org.x4o.sax3.io.AbstractContentWriterLexical
org.x4o.sax3.io.AbstractContentWriter
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ContentWriter
,ContentHandler
,LexicalHandler
- Direct Known Subclasses:
SAX3WriterXml
public abstract class AbstractContentWriter
extends AbstractContentWriterLexical
implements ContentWriter
ContentWriterXml writes SAX content handler events to XML.
- Version:
- 1.0 May 3, 2013
- 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 an Lecical content writer for XML. -
Method Summary
Modifier and TypeMethodDescriptionvoid
startElementEnd
(String uri, String localName, String name, Attributes atts) Starts and end then element.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
-
AbstractContentWriter
Creates an Lecical content writer for XML.- Parameters:
out
- The writer to write to.
-
-
Method Details
-
startElementEnd
public void startElementEnd(String uri, String localName, String name, Attributes atts) throws SAXException Starts and end then element.- Specified by:
startElementEnd
in interfaceContentWriter
- Parameters:
uri
- The uri of the element.localName
- The localName of the element.name
- The name of the element.atts
- The attributes of the element.- Throws:
SAXException
- When IOException is thrown.- See Also:
-