org.apache.cocoon.transformation.helpers
Class TextRecorder

java.lang.Object
  |
  +--org.apache.cocoon.transformation.helpers.NOPRecorder
        |
        +--org.apache.cocoon.transformation.helpers.TextRecorder
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.ext.LexicalHandler, XMLConsumer

public final class TextRecorder
extends NOPRecorder

This class records SAX Events and generates a String from all characters events

Version:
CVS $Id: TextRecorder.java,v 1.1 2002/04/02 14:13:34 cziegeler Exp $
Author:
Carsten Ziegeler

Constructor Summary
TextRecorder()
           
 
Method Summary
 void characters(char[] ary, int start, int length)
           
 java.lang.String getText()
           
 
Methods inherited from class org.apache.cocoon.transformation.helpers.NOPRecorder
comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextRecorder

public TextRecorder()
Method Detail

characters

public void characters(char[] ary,
                       int start,
                       int length)
                throws org.xml.sax.SAXException
Overrides:
characters in class NOPRecorder

getText

public java.lang.String getText()


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.