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, warning
public LinkContentHandler()
public LinkContentHandler(boolean collapseWhitespaceInAnchor)
collapseWhitespaceInAnchor
- public void startElement(String uri, String local, String name, Attributes attributes)
startElement
in interface ContentHandler
startElement
in class DefaultHandler
public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
characters
in class DefaultHandler
public void ignorableWhitespace(char[] ch, int start, int length)
ignorableWhitespace
in interface ContentHandler
ignorableWhitespace
in class DefaultHandler
public void endElement(String uri, String local, String name)
endElement
in interface ContentHandler
endElement
in class DefaultHandler
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.