public class URLCollection extends Object
| Constructor and Description |
|---|
URLCollection(Collection<URLString> c)
Creates a new URLCollection from an existing Collection
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(URL u)
Adds the URL to the Collection, first wrapping it in the URLString class
|
boolean |
addURL(String url,
URL baseUrl)
Convenience method for adding URLs to the collection If the url parameter
is null, empty or URL is malformed, nothing is done
|
Iterator<URL> |
iterator() |
public URLCollection(Collection<URLString> c)
public boolean add(URL u)
u - URL to addpublic boolean addURL(String url, URL baseUrl)
url - String, may be null or emptybaseUrl - Copyright © 1998-2015 Apache Software Foundation. All Rights Reserved.