Class AbstractXDBXWriterLexical
java.lang.Object
org.x4o.sax3.io.xdbx.AbstractXDBXWriterHandler
org.x4o.sax3.io.xdbx.AbstractXDBXWriterLexical
- All Implemented Interfaces:
Closeable, AutoCloseable, ContentHandler, LexicalHandler
- Direct Known Subclasses:
AbstractXDBXWriter
public abstract class AbstractXDBXWriterLexical
extends AbstractXDBXWriterHandler
implements LexicalHandler
Writes SAX lexical handler events to XML.
- Version:
- 1.0 Dec 20, 2024
- Author:
- Willem Cazander
-
Field Summary
FieldsFields inherited from class AbstractXDBXWriterHandler
DEFAULT_PROPERTY_CONFIG, OUTPUT_CHAR_NULL, OUTPUT_COMMENT_AUTO_SPACE, OUTPUT_COMMENT_ENABLE, OUTPUT_DECLARATION, PROLOG_LICENCE_ENABLE, PROLOG_LICENCE_ENCODING, PROLOG_LICENCE_FILE, PROLOG_LICENCE_RESOURCE, PROLOG_USER_COMMENT, PROLOG_USER_COMMENT_ENABLE, ROOT_START_NAMESPACE_ALL -
Constructor Summary
ConstructorsConstructorDescriptionCreates writer which prints to the stream 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 AbstractXDBXWriterHandler
characters, charactersRaw, close, comment, comment, endDocument, endElement, endPrefixMapping, getPropertyConfig, ignorableWhitespace, ignorableWhitespace, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startElementNamespace, startElementNamespaceAll, startElementTag, startPrefixMapping, writeFlush, writeHeaderFlags, writeLengthValue, writeLengthValue, writeTag, writeTagLengthValue, writeVariableInteger, xdbxStringId, xdbxStringStoreMethods 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
-
AbstractXDBXWriterLexical
Creates writer which prints to the stream interface.- Parameters:
out- The stream 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:AbstractXDBXWriterHandlerPrints xml characters and uses characters(java.lang.String) method.- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classAbstractXDBXWriterHandler- 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:AbstractXDBXWriterHandlerEscape and prints xml characters.- Overrides:
charactersin classAbstractXDBXWriterHandler- Parameters:
text- The text to write.- Throws:
SAXException- When IOException has happend while printing.- See Also:
-