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, warningprotected 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 ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerSAXExceptionprotected String currentElement()
protected String currentElementParent()
public AbstractSiteMap getSiteMap()
public void error(SAXParseException e) throws SAXException
error in interface ErrorHandlererror in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void fatalError(SAXParseException e) throws SAXException
fatalError in interface ErrorHandlerfatalError in class org.xml.sax.helpers.DefaultHandlerSAXExceptionCopyright © 2009–2017 Crawler-Commons. All rights reserved.