public class DelegatorHandler extends org.xml.sax.helpers.DefaultHandler
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Extension> |
extensionNamespaces |
protected java.util.function.Function<String,String> |
urlFilter |
| Modifier | Constructor and Description |
|---|---|
protected |
DelegatorHandler(LinkedList<String> elementStack,
boolean strict) |
|
DelegatorHandler(URL url,
boolean strict) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendCharacterBuffer(char[] ch,
int start,
int length) |
protected void |
appendCharacterBuffer(String str) |
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) |
protected String |
getAndResetCharacterBuffer() |
UnknownFormatException |
getException() |
AbstractSiteMap |
getSiteMap() |
protected URL |
getUrl() |
protected boolean |
isAcceptedNamespace(String uri) |
static boolean |
isAllBlank(CharSequence charSeq)
Return true if character sequence contains only white space including
Unicode whitespace, cf.
|
protected boolean |
isExtensionNamespace(String uri) |
protected boolean |
isStrict() |
protected boolean |
isStrictNamespace() |
static boolean |
isWhitespace(char c)
Check whether character is any Unicode whitespace, including the space
characters not covered by
Character.isWhitespace(char) |
protected void |
resetCharacterBuffer() |
void |
setAcceptedNamespaces(Set<String> acceptedSet) |
protected void |
setException(UnknownFormatException exception) |
void |
setExtensionNamespaces(Map<String,Extension> extensionMap) |
void |
setStrictNamespace(boolean s) |
void |
setURLFilter(java.util.function.Function<String,String> urlFilter) |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
static String |
stripAllBlank(CharSequence charSeq)
Trim all whitespace including Unicode whitespace
|
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningprotected java.util.function.Function<String,String> urlFilter
protected DelegatorHandler(LinkedList<String> elementStack, boolean strict)
public DelegatorHandler(URL url, boolean strict)
protected URL getUrl()
protected boolean isStrict()
protected boolean isStrictNamespace()
public void setStrictNamespace(boolean s)
protected boolean isAcceptedNamespace(String uri)
protected boolean isExtensionNamespace(String uri)
public void setURLFilter(java.util.function.Function<String,String> urlFilter)
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 void appendCharacterBuffer(char[] ch,
int start,
int length)
protected void appendCharacterBuffer(String str)
protected String getAndResetCharacterBuffer()
protected void resetCharacterBuffer()
protected 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.DefaultHandlerSAXExceptionpublic static boolean isAllBlank(CharSequence charSeq)
isWhitespace(char)public static boolean isWhitespace(char c)
Character.isWhitespace(char)public static String stripAllBlank(CharSequence charSeq)
Copyright © 2009–2021 Crawler-Commons. All rights reserved.