org.encog.bot.browse
Class Address
java.lang.Object
org.encog.bot.browse.Address
public class Address
- extends java.lang.Object
A URL address. Holds both the URL object, as well as original text.
- Author:
- jheaton
|
Constructor Summary |
Address(java.net.URL u)
Construct the address from a URL. |
Address(java.net.URL base,
java.lang.String original)
Construct a URL using a perhaps relative URL and a base URL. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Address
public Address(java.net.URL u)
- Construct the address from a URL.
- Parameters:
u - The URL to use.
Address
public Address(java.net.URL base,
java.lang.String original)
- Construct a URL using a perhaps relative URL and a base URL.
- Parameters:
base - The base URL.original - A full URL or a URL relative to the base.
getOriginal
public java.lang.String getOriginal()
- Returns:
- The original text from this URL.
getUrl
public java.net.URL getUrl()
- Returns:
- THe URL.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
- Returns:
- The object as a string.