org.apache.cocoon.components.xscript
Class StringBufferContentHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.apache.cocoon.components.xscript.StringBufferContentHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class StringBufferContentHandler
extends DefaultHandler

A ContentHandler that accumulates the SAX stream into a StringBuffer object.

Since:
August 30, 2001
Version:
CVS $Id: StringBufferContentHandler.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Ovidiu Predescu, Vadim Gritsenko

Constructor Summary
StringBufferContentHandler(StringBuffer stringBuffer)
           
 
Method Summary
 void characters(char[] ch, int start, int len)
           
 void endElement(String uri, String loc, String qName)
           
 void endPrefixMapping(String prefix)
           
 void startElement(String uri, String loc, String qName, Attributes a)
           
 void startPrefixMapping(String prefix, String uri)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringBufferContentHandler

public StringBufferContentHandler(StringBuffer stringBuffer)
Method Detail

startPrefixMapping

public void startPrefixMapping(String prefix,
                               String uri)
                        throws SAXException
Specified by:
startPrefixMapping in interface ContentHandler
Overrides:
startPrefixMapping in class DefaultHandler
Throws:
SAXException

endPrefixMapping

public void endPrefixMapping(String prefix)
                      throws SAXException
Specified by:
endPrefixMapping in interface ContentHandler
Overrides:
endPrefixMapping in class DefaultHandler
Throws:
SAXException

startElement

public void startElement(String uri,
                         String loc,
                         String qName,
                         Attributes a)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DefaultHandler
Throws:
SAXException

endElement

public void endElement(String uri,
                       String loc,
                       String qName)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class DefaultHandler
Throws:
SAXException

characters

public void characters(char[] ch,
                       int start,
                       int len)
                throws SAXException
Specified by:
characters in interface ContentHandler
Overrides:
characters in class DefaultHandler
Throws:
SAXException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.