public abstract class SubtreeCutter extends XMLFilterImpl
XMLFilter that can cut sub-trees.| Constructor and Description |
|---|
SubtreeCutter() |
| Modifier and Type | Method and Description |
|---|---|
void |
endElement(String namespaceURI,
String localName,
String qName) |
boolean |
isCutting() |
void |
setContentHandler(ContentHandler handler) |
void |
startCutting()
Starts cutting a sub-tree.
|
void |
startDocument() |
void |
startElement(String uri,
String localName,
String qName,
Attributes atts) |
characters, endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startPrefixMapping, unparsedEntityDecl, warningpublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class XMLFilterImplSAXExceptionpublic boolean isCutting()
public void startCutting()
startElement(String, String, String, Attributes) implementation
before the execution is passed to startElement(String, String, String, Attributes) .
The current element will be cut.public void setContentHandler(ContentHandler handler)
setContentHandler in interface XMLReadersetContentHandler in class XMLFilterImplpublic void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement in interface ContentHandlerstartElement in class XMLFilterImplSAXExceptionpublic void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class XMLFilterImplSAXExceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.