public class DelegatorHandler extends org.xml.sax.helpers.DefaultHandler
Modifier | Constructor and Description |
---|---|
protected |
DelegatorHandler(LinkedList<String> elementStack,
boolean strict) |
|
DelegatorHandler(URL url,
boolean strict) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
protected String |
currentElement() |
protected String |
currentElementParent() |
void |
endElement(String uri,
String localName,
String qName) |
void |
error(SAXParseException e) |
void |
fatalError(SAXParseException e) |
UnknownFormatException |
getException() |
AbstractSiteMap |
getSiteMap() |
protected URL |
getUrl() |
protected boolean |
isStrict() |
boolean |
isStrictNamespace() |
protected void |
setException(UnknownFormatException exception) |
void |
setStrictNamespace(boolean s)
Sets the parser to allow any namespace or just the one from the
specification
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
protected DelegatorHandler(LinkedList<String> elementStack, boolean strict)
public DelegatorHandler(URL url, boolean strict)
protected URL getUrl()
protected boolean isStrict()
public boolean isStrictNamespace()
public void setStrictNamespace(boolean s)
protected void setException(UnknownFormatException exception)
public UnknownFormatException getException()
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
SAXException
protected String currentElement()
protected String currentElementParent()
public AbstractSiteMap getSiteMap()
public void error(SAXParseException e) throws SAXException
error
in interface ErrorHandler
error
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void fatalError(SAXParseException e) throws SAXException
fatalError
in interface ErrorHandler
fatalError
in class org.xml.sax.helpers.DefaultHandler
SAXException
Copyright © 2009–2017 Crawler-Commons. All rights reserved.