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 org.x4o.sax3.io.xdbx.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 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.xdbx.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, xdbxStringStore
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
-
AbstractXDBXWriterLexical
Creates writer which prints to the stream interface.- Parameters:
out
- The stream 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:AbstractXDBXWriterHandler
Prints xml characters and uses characters(java.lang.String) method.- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in 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:AbstractXDBXWriterHandler
Escape and prints xml characters.- Overrides:
characters
in classAbstractXDBXWriterHandler
- Parameters:
text
- The text to write.- Throws:
SAXException
- When IOException has happend while printing.- See Also:
-