org.encog.bot.browse
Class Address

java.lang.Object
  extended by 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.
 
Method Summary
 String getOriginal()
           
 URL getUrl()
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.