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