Class AbstractContentWriterLexical
java.lang.Object
org.x4o.sax3.io.AbstractContentWriterHandler
org.x4o.sax3.io.AbstractContentWriterLexical
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ContentHandler
,LexicalHandler
- Direct Known Subclasses:
AbstractContentWriter
public abstract class AbstractContentWriterLexical
extends AbstractContentWriterHandler
implements LexicalHandler
ContentWriterXml writes SAX content handler events to XML.
- Version:
- 1.0 May 3, 2013
- Author:
- Willem Cazander
-
Field Summary
FieldsFields 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 Writer interface. -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) Prints xml characters and uses characters(java.lang.String) method.void
characters
(String text) Escape and prints xml characters.void
endCDATA()
void
endDTD()
void
void
void
void
startEntity
(String arg0) 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
declaration
Methods inherited from interface org.xml.sax.ext.LexicalHandler
comment
-
Field Details
-
printCDATA
protected boolean printCDATA
-
-
Constructor Details
-
AbstractContentWriterLexical
Creates XmlWriter which prints to the Writer interface.- Parameters:
out
- The writer to print the xml to.
-
-
Method Details
-
startCDATA
- Specified by:
startCDATA
in interfaceLexicalHandler
- Throws:
SAXException
- See Also:
-
endCDATA
- Specified by:
endCDATA
in interfaceLexicalHandler
- Throws:
SAXException
- See Also:
-
startDTD
- Specified by:
startDTD
in interfaceLexicalHandler
- Throws:
SAXException
- See Also:
-
endDTD
- Specified by:
endDTD
in interfaceLexicalHandler
- Throws:
SAXException
- See Also:
-
startEntity
- Specified by:
startEntity
in interfaceLexicalHandler
- Throws:
SAXException
- See Also:
-
endEntity
- Specified by:
endEntity
in interfaceLexicalHandler
- Throws:
SAXException
- See Also:
-
characters
Description copied from class:AbstractContentWriterHandler
Prints xml characters and uses characters(java.lang.String) method.- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classAbstractContentWriterHandler
- Parameters:
ch
- Character buffer.start
- The start index of the chars in the ch buffer.length
- The length index of the chars in the ch buffer.- Throws:
SAXException
- When IOException has happend while printing.- See Also:
-
characters
Description copied from class:AbstractContentWriterHandler
Escape and prints xml characters.- Overrides:
characters
in classAbstractContentWriterHandler
- Parameters:
text
- The text to write.- Throws:
SAXException
- When IOException has happend while printing.- See Also:
-