org.apache.xbean.finder
Class UrlSet
java.lang.Object
org.apache.xbean.finder.UrlSet
public class UrlSet
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UrlSet
public UrlSet(ClassLoader classLoader)
throws IOException
- Throws:
IOException
UrlSet
public UrlSet(URL... urls)
UrlSet
public UrlSet(Collection<URL> urls)
- Ignores all URLs that are not "jar" or "file"
- Parameters:
urls
-
include
public UrlSet include(UrlSet urlSet)
exclude
public UrlSet exclude(UrlSet urlSet)
exclude
public UrlSet exclude(ClassLoader parent)
throws IOException
- Throws:
IOException
exclude
public UrlSet exclude(File file)
throws MalformedURLException
- Throws:
MalformedURLException
exclude
public UrlSet exclude(String pattern)
throws MalformedURLException
- Throws:
MalformedURLException
excludeJavaExtDirs
public UrlSet excludeJavaExtDirs()
throws MalformedURLException
- Calls excludePaths(System.getProperty("java.ext.dirs"))
- Returns:
-
- Throws:
MalformedURLException
excludeJavaEndorsedDirs
public UrlSet excludeJavaEndorsedDirs()
throws MalformedURLException
- Calls excludePaths(System.getProperty("java.endorsed.dirs"))
- Returns:
-
- Throws:
MalformedURLException
excludeJavaHome
public UrlSet excludeJavaHome()
throws MalformedURLException
- Throws:
MalformedURLException
excludePaths
public UrlSet excludePaths(String pathString)
throws MalformedURLException
- Throws:
MalformedURLException
matching
public UrlSet matching(String pattern)
relative
public UrlSet relative(File file)
throws MalformedURLException
- Throws:
MalformedURLException
getUrls
public List<URL> getUrls()
Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.