java.lang.Iterable<java.net.URI>
HTMLParser.SetLinkReceiver
public static interface Parser.LinkReceiver
extends java.lang.Iterable<java.net.URI>
init(URI)
is called before every
other method when parsing a page, exactly once per page.Modifier and Type | Method | Description |
---|---|---|
void |
init(java.net.URI responseUrl) |
Initializes this receiver for a new page.
|
void |
link(java.net.URI uri) |
Handles a link.
|
void |
location(java.net.URI location) |
Handles the location defined by headers.
|
void |
metaLocation(java.net.URI location) |
Handles the location defined by a
META element. |
void |
metaRefresh(java.net.URI refresh) |
Handles the refresh defined by a
META element. |
int |
size() |
void location(java.net.URI location)
location
- the location defined by headers.void metaLocation(java.net.URI location)
META
element.location
- the location defined by the META
element.void metaRefresh(java.net.URI refresh)
META
element.refresh
- the URL defined by the META
element.void link(java.net.URI uri)
uri
- a link discovered during the parsing phase.void init(java.net.URI responseUrl)
responseUrl
- the URL of the page to be parsed.int size()