public class PCDataConcatenatingInfilter extends AncestorXMLFilter
XMLFilterImpl.characters(char[], int, int) into a single event,
which can be handled with PCDataConcatenatingInfilter.bufferedCharacters(char[], int, int).| Constructor and Description |
|---|
PCDataConcatenatingInfilter()
Construct a new PCDataConcatenatingInfilter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bufferedCharacters(char[] ch,
int start,
int length)
This method is identical to the
characters method, but it is triggered only once per PCDATA section. |
void |
characters(char[] ch,
int start,
int length)
Overrides the default
characters method. |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
Overrides the default
endElement method. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Overrides the default
ignorableWhitespace method. |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
Overrides the default
startElement method. |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
Overrides the default
startPrefixMapping method. |
endDocument, getClosestAttributeValueFromAncestor, getClosestAttributeValueFromAnyAncestor, getGrandParentLocalName, getParentLocalName, getParentQName, getProperty, hasAncestor, hasAncestor, hasAncestorWithAttr, hasAncestorWithAttrValue, hasAncestorWithAttrValues, outputCharacters, outputEndElement, outputStartElement, popAncestorStack, pushAncestorStack, setProperty, stackDepth, startDocumentattributeDecl, comment, elementDecl, endCDATA, endDTD, endEntity, externalEntityDecl, internalEntityDecl, parse, parse, startCDATA, startDTD, startEntityendPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, notationDecl, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, skippedEntity, unparsedEntityDecl, warningpublic PCDataConcatenatingInfilter()
Construct a new PCDataConcatenatingInfilter.
public final void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters method. This version of the method performs internal operations.characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.XMLFilterImplch - the charactersstart - the start character numberlength - the length of the character eventorg.xml.sax.SAXException - the superclass may throw an exception during processingXMLFilterImpl.characters(char[], int, int)public void bufferedCharacters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters method, but it is triggered only once per PCDATA section.ch - an array of charactersstart - the starting position in the arraylength - the nu,ber of characters to use from the arrayorg.xml.sax.SAXException - the supertype may throw a SAXException during processingXMLFilterImpl.characters(char[], int, int),
XMLFilterImpl.characters(char[], int, int)public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
startPrefixMapping method. This version of the method performs internal operations.startPrefixMapping in interface org.xml.sax.ContentHandlerstartPrefixMapping in class org.xml.sax.helpers.XMLFilterImplprefix - the namespace prefixuri - the namespace URIorg.xml.sax.SAXException - the superclass may throw an exception during processingXMLFilterImpl.startPrefixMapping(String, String)public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
Overrides the default startElement method. This method processes xml:space and
deltaxml:word-by-word attributes.
startElement in interface org.xml.sax.ContentHandlerstartElement in class AncestorXMLFilteruri - the URI of the element's namespacelocalName - the element's localnameqName - the element's qualified nameatts - the element's attributesorg.xml.sax.SAXException - the superclass may throw an exception during processingXMLFilterImpl.startElement(String, String, String, org.xml.sax.Attributes)public void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
endElement method. This version of the method performs internal operations.endElement in interface org.xml.sax.ContentHandlerendElement in class AncestorXMLFilteruri - the URI of the element's namespacelocalName - the element's localnameqName - the element's qualified nameorg.xml.sax.SAXException - the superclass may throw an exception during processingXMLFilterImpl.endElement(String, String, String)public void ignorableWhitespace(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
ignorableWhitespace method. This version of the method performs internal operations.ignorableWhitespace in interface org.xml.sax.ContentHandlerignorableWhitespace in class org.xml.sax.helpers.XMLFilterImplch - an array of charactersstart - the starting position in the arraylength - the number of characters to use from the arrayorg.xml.sax.SAXException - the superclass may throw an exception during processingXMLFilterImpl.ignorableWhitespace(char[], int, int)