net.sf.joost.emitter
Class TextEmitter
java.lang.Object
net.sf.joost.emitter.StxEmitterBase
net.sf.joost.emitter.StreamEmitter
net.sf.joost.emitter.TextEmitter
- All Implemented Interfaces:
- Constants, ContentHandler, LexicalHandler, StxEmitter
- public class TextEmitter
- extends StreamEmitter
This class implements an emitter that uses the text
output
method for byte or character streams.
- Version:
- $Revision: 1.3 $ $Date: 2004/10/25 20:39:33 $
- Author:
- Oliver Becker, Anatolij Zubow
Field Summary |
private static org.apache.commons.logging.Log |
log
|
Fields inherited from interface net.sf.joost.Constants |
DEBUG, DEFAULT_ENCODING, FEAT_NS, FEAT_NSPREFIX, FEATURE_URI_PREFIX, FUNC_NS, JOOST_EXT_NS, PR_ATTRIBUTES, PR_BUFFER, PR_CHILDREN, PR_CONTINUE, PR_ERROR, PR_SELF, PR_SIBLINGS, STX_NS |
Methods inherited from class net.sf.joost.emitter.StreamEmitter |
comment, endCDATA, endDTD, endEntity, endPrefixMapping, ignorableWhitespace, newEmitter, newEmitter, newEmitter, newXMLEmitter, processingInstruction, setDocumentLocator, setOmitXmlDeclaration, skippedEntity, startCDATA, startDTD, startEntity, startPrefixMapping |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static org.apache.commons.logging.Log log
TextEmitter
public TextEmitter(Writer writer,
String encoding)
- Constructor
startDocument
public void startDocument()
- Does nothing
endDocument
public void endDocument()
throws SAXException
- Flushes the output writer
- Throws:
SAXException
startElement
public void startElement(String uri,
String lName,
String qName,
Attributes attrs)
- Does nothing
endElement
public void endElement(String uri,
String lName,
String qName)
- Does nothing
characters
public void characters(char[] ch,
int start,
int length)
throws SAXException
- Outputs characters.
- Throws:
SAXException