public class StripAllWordElementsFilter extends ExtendedXMLFilterImpl
| Modifier and Type | Field and Description |
|---|---|
protected int |
divCount
Div count.
|
protected int |
lineCount
Line within div count.
|
protected boolean |
processingWorC
True if processing w or c element.
|
| Constructor and Description |
|---|
StripAllWordElementsFilter(org.xml.sax.XMLReader reader)
Create filter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Handle character data.
|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
Handle end of an element.
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
Handle start of an XML element.
|
removeAttribute, setAttributeValue, setAttributeValue, setAttributeValueendDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningprotected int divCount
protected int lineCount
protected boolean processingWorC
public StripAllWordElementsFilter(org.xml.sax.XMLReader reader)
reader - XML input reader to which filter applies.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
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.XMLFilterImpluri - The XML element's URI.localName - The XML element's local name.qName - The XML element's qname.atts - The XML element's attributes.org.xml.sax.SAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.XMLFilterImplch - Array of characters.start - The starting position in the array.length - The number of characters.org.xml.sax.SAXException - If there is an error.public void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.XMLFilterImpluri - The XML element's URI.localName - The XML element's local name.qName - The XML element's qname.org.xml.sax.SAXException