|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.XMLFilterImpl
org.xwiki.rendering.wikimodel.xhtml.filter.DefaultXMLFilter
org.xwiki.rendering.wikimodel.xhtml.filter.AccumulationXMLFilter
public class AccumulationXMLFilter
SAX parsers are allowed to call the characters() method several times in a row. Some parsers have a buffer of 8K (Crimson), others of 16K (Xerces) and others can even call onCharacters() for every single characters! Thus we need to accumulate the characters in a buffer before we process them. This filter does exactly this.
| Field Summary |
|---|
| Fields inherited from class org.xwiki.rendering.wikimodel.xhtml.filter.DefaultXMLFilter |
|---|
SAX_LEXICAL_HANDLER_PROPERTY |
| Constructor Summary | |
|---|---|
AccumulationXMLFilter()
|
|
AccumulationXMLFilter(XMLReader reader)
|
|
| Method Summary | |
|---|---|
void |
characters(char[] array,
int start,
int length)
|
void |
comment(char[] array,
int start,
int length)
|
void |
endCDATA()
|
void |
endElement(String uri,
String localName,
String qName)
|
void |
startCDATA()
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
|
| Methods inherited from class org.xwiki.rendering.wikimodel.xhtml.filter.DefaultXMLFilter |
|---|
endDTD, endEntity, getProperty, parse, setProperty, startDTD, startEntity |
| Methods inherited from class org.xml.sax.helpers.XMLFilterImpl |
|---|
endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, ignorableWhitespace, notationDecl, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AccumulationXMLFilter()
public AccumulationXMLFilter(XMLReader reader)
| Method Detail |
|---|
public void characters(char[] array,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.XMLFilterImplSAXExceptionDefaultHandler.characters(char[], int, int)
public void startElement(String uri,
String localName,
String qName,
Attributes attributes)
throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.XMLFilterImplSAXExceptionDefaultHandler.startElement(java.lang.String,
java.lang.String, java.lang.String, org.xml.sax.Attributes)
public void endElement(String uri,
String localName,
String qName)
throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.XMLFilterImplSAXExceptionDefaultHandler.endElement(java.lang.String,
java.lang.String, java.lang.String)
public void comment(char[] array,
int start,
int length)
throws SAXException
comment in interface LexicalHandlercomment in class DefaultXMLFilterSAXException
public void startCDATA()
throws SAXException
startCDATA in interface LexicalHandlerstartCDATA in class DefaultXMLFilterSAXException
public void endCDATA()
throws SAXException
endCDATA in interface LexicalHandlerendCDATA in class DefaultXMLFilterSAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||