Interface ContentWriter
- All Superinterfaces:
AutoCloseable
,Closeable
,ContentHandler
,LexicalHandler
- All Known Implementing Classes:
AbstractContentWriter
,AbstractXDBXWriter
,ContentWriterAdapter
,SAX3WriterXml
,ScopicManifest5ContentParser
,XDBXWriterXml
ContentWriter is ContentHandler for writing sax events.
- Version:
- 1.0 Apr 30, 2013
- Author:
- Willem Cazander
-
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char c) Writes a single character in the body body.void
characters
(String text) Writes a String in the body.void
Writes a String as xml comment.void
ignorableWhitespace
(char c) Writes a whitespace character to the body.void
ignorableWhitespace
(String text) Writes a whitespace String to the body.void
startElementEnd
(String uri, String localName, String name, Attributes atts) Starts and ends an element in one call.Methods inherited from interface org.xml.sax.ContentHandler
characters, declaration, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
Methods inherited from interface org.xml.sax.ext.LexicalHandler
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
-
Method Details
-
startElementEnd
void startElementEnd(String uri, String localName, String name, Attributes atts) throws SAXException Starts and ends an element in one call.- 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.
-
comment
Writes a String as xml comment.- Parameters:
text
- The text to have embedded as comment in xml.- Throws:
SAXException
- On error.
-
ignorableWhitespace
Writes a whitespace String to the body.- Parameters:
text
- The String of whitespace to write.- Throws:
SAXException
- On error.
-
ignorableWhitespace
Writes a whitespace character to the body.- Parameters:
c
- The character to write.- Throws:
SAXException
- On error;
-
characters
Writes a String in the body.- Parameters:
text
- The text to write.- Throws:
SAXException
- On error.
-
characters
Writes a single character in the body body.- Parameters:
c
- The character to write.- Throws:
SAXException
- On error.
-