Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.htmlparser.beans
Class LinkBean  view LinkBean download LinkBean.java

java.lang.Object
  extended byorg.htmlparser.beans.LinkBean
All Implemented Interfaces:
java.io.Serializable

public class LinkBean
extends java.lang.Object
implements java.io.Serializable

Extract strings from a URL.


Field Summary
protected  java.net.URL[] mLinks
          The strings extracted from the URL.
protected  org.htmlparser.Parser mParser
          The parser used to extract strings.
protected  java.beans.PropertyChangeSupport mPropertySupport
          Bound property support.
static java.lang.String PROP_LINKS_PROPERTY
          Property name in event where the URL contents changes.
static java.lang.String PROP_URL_PROPERTY
          Property name in event where the URL changes.
 
Constructor Summary
LinkBean()
          Creates new StringBean
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Add a PropertyChangeListener to the listener list.
protected  boolean equivalent(java.net.URL[] array1, java.net.URL[] array2)
          Determine if two arrays of URL's are the same.
protected  java.net.URL[] extractLinks(java.lang.String url)
           
 java.net.URLConnection getConnection()
          Getter for property Connection.
 java.net.URL[] getLinks()
          Getter for property links.
 java.lang.String getURL()
          Getter for property URL.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Remove a PropertyChangeListener from the listener list.
 void setConnection(java.net.URLConnection connection)
          Setter for property Connection.
private  void setLinks()
          Refetch the URL contents.
 void setURL(java.lang.String url)
          Setter for property URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_LINKS_PROPERTY

public static final java.lang.String PROP_LINKS_PROPERTY
Property name in event where the URL contents changes.

See Also:
Constant Field Values

PROP_URL_PROPERTY

public static final java.lang.String PROP_URL_PROPERTY
Property name in event where the URL changes.

See Also:
Constant Field Values

mPropertySupport

protected java.beans.PropertyChangeSupport mPropertySupport
Bound property support.


mLinks

protected java.net.URL[] mLinks
The strings extracted from the URL.


mParser

protected org.htmlparser.Parser mParser
The parser used to extract strings.

Constructor Detail

LinkBean

public LinkBean()
Creates new StringBean

Method Detail

extractLinks

protected java.net.URL[] extractLinks(java.lang.String url)
                               throws org.htmlparser.util.ParserException

equivalent

protected boolean equivalent(java.net.URL[] array1,
                             java.net.URL[] array2)
Determine if two arrays of URL's are the same.


addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list. The listener is registered for all properties.


removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.


setLinks

private void setLinks()
Refetch the URL contents.


getLinks

public java.net.URL[] getLinks()
Getter for property links.


getURL

public java.lang.String getURL()
Getter for property URL.


setURL

public void setURL(java.lang.String url)
Setter for property URL.


getConnection

public java.net.URLConnection getConnection()
Getter for property Connection.


setConnection

public void setConnection(java.net.URLConnection connection)
Setter for property Connection.