HtmlResourceContentIterator
Iterates an HTML resource, starting from the given locator.
If you want to start mid-resource, the locator must contain a cssSelector key in its Locator.Locations object.
If you want to start from the end of the resource, the locator must have a progression of 1.0.
Locators will contain a before context of up to beforeMaxLength characters.
Types
Holds the result of parsing the HTML resource into a list of Content.Element.
Functions
Returns true if the iterator has a previous element, suspending the caller while processing it.
Retrieves the element computed by a preceding call to hasNext, or throws an IllegalStateException if hasNext was not invoked. This method should only be used in pair with hasNext.
Advances to the next item and returns it, or null if we reached the end.
Retrieves the element computed by a preceding call to hasPrevious, or throws an IllegalStateException if hasPrevious was not invoked. This method should only be used in pair with hasPrevious.
Advances to the previous item and returns it, or null if we reached the beginning.