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 theOriginal)
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 theOriginal)
- Construct a URL using a perhaps relative URL and a base URL.
- Parameters:
base
- The base URL.theOriginal
- A full URL or a URL relative to the base.
getOriginal
public final String getOriginal()
- Returns:
- The original text from this URL.
getUrl
public final URL getUrl()
- Returns:
- THe URL.
toString
public final String toString()
-
- Overrides:
toString
in class Object
Copyright © 2014. All Rights Reserved.