net.sf.joost.emitter
Class TextEmitter

java.lang.Object
  extended by net.sf.joost.emitter.StxEmitterBase
      extended by net.sf.joost.emitter.StreamEmitter
          extended by net.sf.joost.emitter.TextEmitter
All Implemented Interfaces:
Constants, StxEmitter, ContentHandler, LexicalHandler

public class TextEmitter
extends StreamEmitter

This class implements an emitter that uses the text output method for byte or character streams.

Version:
$Revision: 1.4 $ $Date: 2007/11/25 14:18:02 $
Author:
Oliver Becker, Anatolij Zubow

Field Summary
private static org.apache.commons.logging.Log log
           
 
Fields inherited from class net.sf.joost.emitter.StreamEmitter
charsetEncoder, encoding, writer
 
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
 
Constructor Summary
TextEmitter(Writer writer, String encoding)
          Constructor
 
Method Summary
 void characters(char[] ch, int start, int length)
          Outputs characters.
 void endDocument()
          Flushes the output writer
 void endElement(String uri, String lName, String qName)
          Does nothing
 void startDocument()
          Does nothing
 void startElement(String uri, String lName, String qName, Attributes attrs)
          Does nothing
 
Methods inherited from class net.sf.joost.emitter.StreamEmitter
comment, encodeCharacters, endCDATA, endDTD, endEntity, endPrefixMapping, ignorableWhitespace, newEmitter, newEmitter, newEmitter, newXMLEmitter, processingInstruction, setDocumentLocator, setOmitXmlDeclaration, setSupportDisableOutputEscaping, skippedEntity, startCDATA, startDTD, startEntity, startPrefixMapping
 
Methods inherited from class net.sf.joost.emitter.StxEmitterBase
getSystemId, setSystemId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.commons.logging.Log log
Constructor Detail

TextEmitter

public TextEmitter(Writer writer,
                   String encoding)
Constructor

Method Detail

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