org.htmlparser.beans
public class LinkBean extends Object implements Serializable
| Field Summary | |
|---|---|
| protected URL[] | mLinks
The strings extracted from the URL. |
| protected Parser | mParser
The parser used to extract strings. |
| protected PropertyChangeSupport | mPropertySupport
Bound property support. |
| static String | PROP_LINKS_PROPERTY
Property name in event where the URL contents changes. |
| static String | PROP_URL_PROPERTY
Property name in event where the URL changes. |
| Constructor Summary | |
|---|---|
| LinkBean() Creates new LinkBean | |
| Method Summary | |
|---|---|
| void | addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list.
|
| protected boolean | equivalent(URL[] array1, URL[] array2)
Determine if two arrays of URL's are the same. |
| protected URL[] | extractLinks()
Internal routine to extract all the links from the parser. |
| URLConnection | getConnection()
Getter for property Connection. |
| URL[] | getLinks()
Getter for property links. |
| String | getURL()
Getter for property URL. |
| static void | main(String[] args)
Unit test. |
| void | removePropertyChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list.
|
| void | setConnection(URLConnection connection)
Setter for property Connection. |
| void | setURL(String url)
Setter for property URL. |
Parameters: listener The PropertyChangeListener to be added.
Parameters: array1 One array of URL's array2 Another array of URL's
Returns: true if the URL's match in number and value,
false otherwise.
Returns: A list of all links on the page as URLs.
Throws: ParserException If the parse fails.
Returns: Value of property Connection.
Returns: Value of property links.
Returns: Value of property URL.
Parameters: args Pass arg[0] as the URL to process.
Parameters: listener The PropertyChangeListener to be removed.
Parameters: connection New value of property Connection.
Parameters: url New value of property URL.
| HTML Parser is an open source library released under LGPL. | |