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, warning
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class XMLFilterImpl
SAXException
public 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 XMLReader
setContentHandler
in class XMLFilterImpl
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class XMLFilterImpl
SAXException
public void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class XMLFilterImpl
SAXException
Copyright © 2017 JBoss by Red Hat. All rights reserved.