net.jangaroo.utils
Class CharacterRecordingHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by net.jangaroo.utils.CharacterRecordingHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class CharacterRecordingHandler
extends org.xml.sax.helpers.DefaultHandler

A ContentHandler that records characters (CDATA). Recording can be started and is stopped when the characters are retrieved.


Constructor Summary
CharacterRecordingHandler()
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void ignorableWhitespace(char[] ch, int start, int length)
           
protected  String popRecordedCharacters()
           
protected  void startRecordingCharacters()
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endElement, endPrefixMapping, error, fatalError, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharacterRecordingHandler

public CharacterRecordingHandler()
Method Detail

startRecordingCharacters

protected void startRecordingCharacters()

ignorableWhitespace

public void ignorableWhitespace(char[] ch,
                                int start,
                                int length)
                         throws SAXException
Specified by:
ignorableWhitespace in interface ContentHandler
Overrides:
ignorableWhitespace in class org.xml.sax.helpers.DefaultHandler
Throws:
SAXException

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws SAXException
Specified by:
characters in interface ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
Throws:
SAXException

popRecordedCharacters

protected String popRecordedCharacters()


Copyright © 2002-2012 CoreMedia AG. All Rights Reserved.