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 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 TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) Prints xml characters and uses characters(java.lang.String) method.voidcharacters(String text) Escape and prints xml characters.voidendCDATA()voidendDTD()voidvoidvoidvoidstartEntity(String arg0) Methods 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
declarationMethods inherited from interface 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:
startCDATAin interfaceLexicalHandler- Throws:
SAXException- See Also:
-
endCDATA
- Specified by:
endCDATAin interfaceLexicalHandler- Throws:
SAXException- See Also:
-
startDTD
- Specified by:
startDTDin interfaceLexicalHandler- Throws:
SAXException- See Also:
-
endDTD
- Specified by:
endDTDin interfaceLexicalHandler- Throws:
SAXException- See Also:
-
startEntity
- Specified by:
startEntityin interfaceLexicalHandler- Throws:
SAXException- See Also:
-
endEntity
- Specified by:
endEntityin interfaceLexicalHandler- Throws:
SAXException- See Also:
-
characters
Description copied from class:AbstractContentWriterHandlerPrints xml characters and uses characters(java.lang.String) method.- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin 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:AbstractContentWriterHandlerEscape and prints xml characters.- Overrides:
charactersin classAbstractContentWriterHandler- Parameters:
text- The text to write.- Throws:
SAXException- When IOException has happend while printing.- See Also:
-