org.encog.bot.browse
Class Address
java.lang.Object
org.encog.bot.browse.Address
public class Address
- extends Object
A URL address. Holds both the URL object, as well as original text.
- Author:
- jheaton
|
Constructor Summary |
Address(URL u)
Construct the address from a URL. |
Address(URL base,
String original)
Construct a URL using a perhaps relative URL and a base URL. |
Address
public Address(URL u)
- Construct the address from a URL.
- Parameters:
u - The URL to use.
Address
public Address(URL base,
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 String getOriginal()
- Returns:
- The original text from this URL.
getUrl
public URL getUrl()
- Returns:
- THe URL.
toString
public String toString()
-
- Overrides:
toString in class Object
Copyright © 2011. All Rights Reserved.