public class ImportXmlRootFilter extends org.xml.sax.helpers.XMLFilterImpl
Modifier and Type | Field and Description |
---|---|
boolean |
rootNodeFound |
Constructor and Description |
---|
ImportXmlRootFilter(XMLReader parent) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String localName,
String qName) |
boolean |
rootNodeWasFound()
Root node was found should be called after parsing to check if a root node was indeed found.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes atts) |
endDocument, 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, warning
public ImportXmlRootFilter(XMLReader parent)
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.XMLFilterImpl
SAXException
XMLFilterImpl.endElement(String, String, String)
public boolean rootNodeWasFound()
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class org.xml.sax.helpers.XMLFilterImpl
SAXException
XMLFilterImpl.characters(char[], int, int)
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.XMLFilterImpl
SAXException
XMLFilterImpl.startElement(String, String, String, Attributes)
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.