public interface LinkExtractorParser
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<java.net.URL> |
getEmbeddedResourceURLs(java.lang.String userAgent,
byte[] responseData,
java.net.URL baseUrl,
java.lang.String encoding)
Get the URLs for all the resources that a browser would automatically
download following the download of the content, that is: images,
stylesheets, javascript files, applets, etc...
|
boolean |
isReusable() |
java.util.Iterator<java.net.URL> getEmbeddedResourceURLs(java.lang.String userAgent, byte[] responseData, java.net.URL baseUrl, java.lang.String encoding) throws LinkExtractorParseException
URLs should not appear twice in the returned iterator.
Malformed URLs can be reported to the caller by having the Iterator return the corresponding RL String. Overall problems parsing the html should be reported by throwing an HTMLParseException.
userAgent
- User AgentresponseData
- Response databaseUrl
- Base URL from which the HTML code was obtainedencoding
- CharsetLinkExtractorParseException
- when extracting the links failsboolean isReusable()
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.