public class UrlSet
extends java.lang.Object
implements java.lang.Iterable<java.net.URL>
Constructor and Description |
---|
UrlSet(java.lang.ClassLoader classLoader) |
UrlSet(java.util.Collection<java.net.URL> urls)
Ignores all URLs that are not "jar" or "file"
|
UrlSet(java.net.URL... urls) |
Modifier and Type | Method and Description |
---|---|
UrlSet |
exclude(java.lang.ClassLoader parent) |
UrlSet |
exclude(java.io.File file) |
UrlSet |
exclude(java.lang.String pattern) |
UrlSet |
exclude(java.net.URL url) |
UrlSet |
exclude(UrlSet urlSet) |
UrlSet |
excludeJavaEndorsedDirs()
Calls excludePaths(System.getProperty("java.endorsed.dirs"))
|
UrlSet |
excludeJavaExtDirs()
Calls excludePaths(System.getProperty("java.ext.dirs"))
|
UrlSet |
excludeJavaHome() |
UrlSet |
excludePaths(java.lang.String pathString) |
UrlSet |
filter(Filter filter) |
java.util.List<java.net.URL> |
getUrls() |
UrlSet |
include(java.net.URL url) |
UrlSet |
include(UrlSet urlSet) |
java.util.Iterator<java.net.URL> |
iterator() |
UrlSet |
matching(java.lang.String pattern) |
UrlSet |
relative(java.io.File file) |
int |
size() |
java.lang.String |
toString() |
public UrlSet(java.lang.ClassLoader classLoader) throws java.io.IOException
java.io.IOException
public UrlSet(java.net.URL... urls)
public UrlSet(java.util.Collection<java.net.URL> urls)
urls
- public UrlSet include(java.net.URL url)
public UrlSet exclude(java.net.URL url)
public UrlSet exclude(java.lang.ClassLoader parent) throws java.io.IOException
java.io.IOException
public UrlSet exclude(java.io.File file) throws java.net.MalformedURLException
java.net.MalformedURLException
public UrlSet exclude(java.lang.String pattern) throws java.net.MalformedURLException
java.net.MalformedURLException
public UrlSet excludeJavaExtDirs() throws java.net.MalformedURLException
java.net.MalformedURLException
public UrlSet excludeJavaEndorsedDirs() throws java.net.MalformedURLException
java.net.MalformedURLException
public UrlSet excludeJavaHome() throws java.net.MalformedURLException
java.net.MalformedURLException
public UrlSet excludePaths(java.lang.String pathString) throws java.net.MalformedURLException
java.net.MalformedURLException
public UrlSet matching(java.lang.String pattern)
public UrlSet relative(java.io.File file) throws java.net.MalformedURLException
java.net.MalformedURLException
public java.util.List<java.net.URL> getUrls()
public int size()
public java.util.Iterator<java.net.URL> iterator()
iterator
in interface java.lang.Iterable<java.net.URL>
public java.lang.String toString()
toString
in class java.lang.Object