com.day.cq.rewriter.xml.helpers
Class SAXRecorder
java.lang.Object
com.day.cq.rewriter.xml.helpers.NOPRecorder
com.day.cq.rewriter.xml.helpers.SAXRecorder
- All Implemented Interfaces:
- ContentHandler, LexicalHandler
public final class SAXRecorder
- extends NOPRecorder
This class records all character and element SAX events
and creates a string from them.
| Methods inherited from class com.day.cq.rewriter.xml.helpers.NOPRecorder |
comment, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SAXRecorder
public SAXRecorder()
characters
public void characters(char[] ary,
int start,
int length)
- Specified by:
characters in interface ContentHandler- Overrides:
characters in class NOPRecorder
endElement
public void endElement(String namespace,
String name,
String raw)
throws SAXException
- Specified by:
endElement in interface ContentHandler- Overrides:
endElement in class NOPRecorder
- Throws:
SAXException
startElement
public void startElement(String namespace,
String name,
String raw,
Attributes attr)
throws SAXException
- Specified by:
startElement in interface ContentHandler- Overrides:
startElement in class NOPRecorder
- Throws:
SAXException
getText
public String getText()
- Returns:
- Recorded text so far, trimmed.
Copyright © 2008 Day Management AG. All Rights Reserved.