public class SearchResult
extends java.lang.Object
| Constructor and Description |
|---|
SearchResult()
Create a new instance of SearchResult
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContent()
Get the parsed web page content.
|
float |
getCount()
Get the count value.
|
java.util.ArrayList<java.net.URL> |
getHyperlinks()
Get the parsed hyperlinks list.
|
java.lang.String |
getUri()
Get the web page uri.
|
void |
readParseHtml(java.lang.String uriPath)
Read an html file remotely from a web address and parse.
|
void |
setContent(java.lang.String thisContent)
Set the parsed web page content.
|
void |
setCount(float thisCount)
Set the count value.
|
void |
setHyperlinks(java.util.ArrayList<java.net.URL> thisHyperlinks)
Set the parsed web page hyperlinks list.
|
void |
setUri(java.lang.String thisUri)
Set the web page uri.
|
public void readParseHtml(java.lang.String uriPath)
throws java.lang.Exception
uriPath - the web address url.java.lang.Exception - any error.public void setUri(java.lang.String thisUri)
thisUri - the web page uri.public java.lang.String getUri()
public void setContent(java.lang.String thisContent)
thisContent - the parsed web page contentpublic java.lang.String getContent()
public void setHyperlinks(java.util.ArrayList<java.net.URL> thisHyperlinks)
thisHyperlinks - the list of hyperlinks as strings.public java.util.ArrayList<java.net.URL> getHyperlinks()
public void setCount(float thisCount)
thisCount - a count value.public float getCount()