Class ContentWriterAdapter
java.lang.Object
org.x4o.sax3.io.ContentWriterAdapter
- All Implemented Interfaces:
Closeable, AutoCloseable, ContentWriter, ContentHandler, LexicalHandler
- Direct Known Subclasses:
ScopicManifest5ContentParser
ContentWriterAdapter is base ContentHandler for writing SAX3 events.
- Version:
- 1.0 Dec 27, 2024
- Author:
- Willem Cazander
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char c) Writes a single character in the body body.voidcharacters(char[] ch, int start, int length) voidcomment(char[] ch, int start, int length) voidWrites a String as xml comment.voidendCDATA()voidendDTD()voidvoidendPrefixMapping(String arg0) voidignorableWhitespace(char c) Writes a whitespace character to the body.voidignorableWhitespace(char[] ch, int start, int length) voidignorableWhitespace(String text) Writes a whitespace String to the body.voidprocessingInstruction(String arg0, String arg1) voidsetDocumentLocator(Locator arg0) voidskippedEntity(String arg0) voidvoidvoidstartElementEnd(String uri, String localName, String name, Attributes atts) Starts and ends an element in one call.voidstartEntity(String arg0) voidstartPrefixMapping(String arg0, String arg1) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContentHandler
declaration, endDocument, endElement, startDocument, startElementMethods inherited from interface ContentWriter
characters
-
Constructor Details
-
ContentWriterAdapter
public ContentWriterAdapter()
-
-
Method Details
-
comment
- Specified by:
commentin interfaceLexicalHandler- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfaceContentHandler- Throws:
SAXException
-
ignorableWhitespace
Description copied from interface:ContentWriterWrites a whitespace character to the body.- Specified by:
ignorableWhitespacein interfaceContentWriter- Parameters:
c- The character to write.- Throws:
SAXException- On error;
-
startElementEnd
public void startElementEnd(String uri, String localName, String name, Attributes atts) throws SAXException Description copied from interface:ContentWriterStarts and ends an element in one call.- Specified by:
startElementEndin 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.
-
characters
Description copied from interface:ContentWriterWrites a single character in the body body.- Specified by:
charactersin interfaceContentWriter- Parameters:
c- The character to write.- Throws:
SAXException- On error.
-
characters
- Specified by:
charactersin interfaceContentHandler- Throws:
SAXException
-
endCDATA
- Specified by:
endCDATAin interfaceLexicalHandler- Throws:
SAXException
-
endDTD
- Specified by:
endDTDin interfaceLexicalHandler- Throws:
SAXException
-
endEntity
- Specified by:
endEntityin interfaceLexicalHandler- Throws:
SAXException
-
startCDATA
- Specified by:
startCDATAin interfaceLexicalHandler- Throws:
SAXException
-
startDTD
- Specified by:
startDTDin interfaceLexicalHandler- Throws:
SAXException
-
startEntity
- Specified by:
startEntityin interfaceLexicalHandler- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
processingInstruction
- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException
-
setDocumentLocator
- Specified by:
setDocumentLocatorin interfaceContentHandler
-
skippedEntity
- Specified by:
skippedEntityin interfaceContentHandler- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
comment
Description copied from interface:ContentWriterWrites a String as xml comment.- Specified by:
commentin interfaceContentWriter- Parameters:
text- The text to have embedded as comment in xml.- Throws:
SAXException- On error.
-
ignorableWhitespace
Description copied from interface:ContentWriterWrites a whitespace String to the body.- Specified by:
ignorableWhitespacein interfaceContentWriter- Parameters:
text- The String of whitespace to write.- Throws:
SAXException- On error.
-