|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.util.http.URLUtility
public final class URLUtility
URLUtility: A set of useful utilities for processing URL's.
| Field Summary | |
|---|---|
static java.lang.String |
INDEX_FILE
The name of the usual default document. |
static int |
SPECIAL_CHAR_LIMIT
Beyond this number are special chars. |
| Method Summary | |
|---|---|
static java.net.URL |
constructURL(java.net.URL base,
java.lang.String url,
boolean stripRef)
Construct a URL from its basic parts. |
static boolean |
containsInvalidURLCharacters(java.lang.String url)
Returns true if the URL contains any invalid characters. |
static java.lang.String |
convertFilename(java.lang.String base,
java.net.URL url,
boolean mkdir)
Convert a filename for local storage. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SPECIAL_CHAR_LIMIT
public static final java.lang.String INDEX_FILE
| Method Detail |
|---|
public static java.net.URL constructURL(java.net.URL base,
java.lang.String url,
boolean stripRef)
throws java.io.IOException
base - The base URL.url - The URL that was found on the base URL's page.stripRef - True if the URL's reference should be stripped.
java.io.IOException - Thrown if any IO error occurs.public static boolean containsInvalidURLCharacters(java.lang.String url)
url - The URL to be checked.
public static java.lang.String convertFilename(java.lang.String base,
java.net.URL url,
boolean mkdir)
base - The local path that forms the base of the downloaded web tree.url - The URL path.mkdir - Should the directory structure be created.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||