public class LinkContentHandler extends DefaultHandler
| Constructor and Description |
|---|
LinkContentHandler()
Default constructor
|
LinkContentHandler(boolean collapseWhitespaceInAnchor)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String local,
String name) |
List<Link> |
getLinks()
Returns the list of collected links.
|
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
void |
startElement(String uri,
String local,
String name,
Attributes attributes) |
endDocument, endPrefixMapping, error, fatalError, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic LinkContentHandler()
public LinkContentHandler(boolean collapseWhitespaceInAnchor)
collapseWhitespaceInAnchor - public void startElement(String uri, String local, String name, Attributes attributes)
startElement in interface ContentHandlerstartElement in class DefaultHandlerpublic void characters(char[] ch,
int start,
int length)
characters in interface ContentHandlercharacters in class DefaultHandlerpublic void ignorableWhitespace(char[] ch,
int start,
int length)
ignorableWhitespace in interface ContentHandlerignorableWhitespace in class DefaultHandlerpublic void endElement(String uri, String local, String name)
endElement in interface ContentHandlerendElement in class DefaultHandlerCopyright © 2007–2023 The Apache Software Foundation. All rights reserved.