Package it.unimi.dsi.law.warc.parser
Class HTMLParser.SetLinkReceiver
java.lang.Object
it.unimi.dsi.law.warc.parser.HTMLParser.SetLinkReceiver
- All Implemented Interfaces:
Parser.LinkReceiver
,Iterable<URI>
- Enclosing class:
- HTMLParser
public static final class HTMLParser.SetLinkReceiver extends Object implements Parser.LinkReceiver
-
Constructor Summary
Constructors Constructor Description SetLinkReceiver()
-
Method Summary
Modifier and Type Method Description void
init(URI responseUrl)
Initializes this receiver for a new page.Iterator<URI>
iterator()
void
link(URI link)
Handles a link.void
location(URI location)
Handles the location defined by headers.void
metaLocation(URI location)
Handles the location defined by aMETA
element.void
metaRefresh(URI refresh)
Handles the refresh defined by aMETA
element.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SetLinkReceiver
public SetLinkReceiver()
-
-
Method Details
-
location
Description copied from interface:Parser.LinkReceiver
Handles the location defined by headers.- Specified by:
location
in interfaceParser.LinkReceiver
- Parameters:
location
- the location defined by headers.
-
metaLocation
Description copied from interface:Parser.LinkReceiver
Handles the location defined by aMETA
element.- Specified by:
metaLocation
in interfaceParser.LinkReceiver
- Parameters:
location
- the location defined by theMETA
element.
-
metaRefresh
Description copied from interface:Parser.LinkReceiver
Handles the refresh defined by aMETA
element.- Specified by:
metaRefresh
in interfaceParser.LinkReceiver
- Parameters:
refresh
- the URL defined by theMETA
element.
-
link
Description copied from interface:Parser.LinkReceiver
Handles a link.- Specified by:
link
in interfaceParser.LinkReceiver
- Parameters:
link
- a link discovered during the parsing phase.
-
init
Description copied from interface:Parser.LinkReceiver
Initializes this receiver for a new page.- Specified by:
init
in interfaceParser.LinkReceiver
- Parameters:
responseUrl
- the URL of the page to be parsed.
-
iterator
-