class WhitespaceStripper extends XMLFilterImpl
This filter works only when the event stream doesn't contain any mixed content.
| Constructor and Description |
|---|
WhitespaceStripper(ContentHandler handler,
ErrorHandler eh,
EntityResolver er) |
WhitespaceStripper(XMLReader reader) |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String localName,
String qName) |
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
void |
startElement(String uri,
String localName,
String qName,
Attributes atts) |
endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic WhitespaceStripper(XMLReader reader)
public WhitespaceStripper(ContentHandler handler, ErrorHandler eh, EntityResolver er)
public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class XMLFilterImplSAXExceptionpublic void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement in interface ContentHandlerstartElement in class XMLFilterImplSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class XMLFilterImplSAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerignorableWhitespace in class XMLFilterImplSAXExceptionCopyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.