Package org.apache.xbean.finder
Class UrlSet
- java.lang.Object
-
- org.apache.xbean.finder.UrlSet
-
- All Implemented Interfaces:
java.lang.Iterable<java.net.URL>
public class UrlSet extends java.lang.Object implements java.lang.Iterable<java.net.URL>
- Version:
- $Rev$ $Date$
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UrlSetexclude(java.io.File file)UrlSetexclude(java.lang.ClassLoader parent)UrlSetexclude(java.lang.String pattern)UrlSetexclude(java.net.URL url)UrlSetexclude(UrlSet urlSet)UrlSetexcludeJavaEndorsedDirs()Calls excludePaths(System.getProperty("java.endorsed.dirs"))UrlSetexcludeJavaExtDirs()Calls excludePaths(System.getProperty("java.ext.dirs"))UrlSetexcludeJavaHome()UrlSetexcludeJvm()UrlSetexcludePaths(java.lang.String pathString)UrlSetfilter(Filter filter)java.util.List<java.net.URL>getUrls()UrlSetinclude(java.net.URL url)UrlSetinclude(UrlSet urlSet)booleanisOsx()java.util.Iterator<java.net.URL>iterator()UrlSetmatching(java.lang.String pattern)UrlSetrelative(java.io.File file)intsize()java.lang.StringtoString()
-
-
-
Constructor Detail
-
UrlSet
public UrlSet(java.lang.ClassLoader classLoader) throws java.io.IOException
- Throws:
java.io.IOException
-
UrlSet
public UrlSet(java.net.URL... urls)
-
UrlSet
public UrlSet(java.util.Collection<java.net.URL> urls)
Ignores all URLs that are not "jar" or "file"- Parameters:
urls-
-
-
Method Detail
-
exclude
public UrlSet exclude(java.lang.ClassLoader parent) throws java.io.IOException
- Throws:
java.io.IOException
-
exclude
public UrlSet exclude(java.io.File file) throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
-
exclude
public UrlSet exclude(java.lang.String pattern) throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
-
excludeJavaExtDirs
public UrlSet excludeJavaExtDirs() throws java.net.MalformedURLException
Calls excludePaths(System.getProperty("java.ext.dirs"))- Returns:
- Throws:
java.net.MalformedURLException
-
excludeJavaEndorsedDirs
public UrlSet excludeJavaEndorsedDirs() throws java.net.MalformedURLException
Calls excludePaths(System.getProperty("java.endorsed.dirs"))- Returns:
- Throws:
java.net.MalformedURLException
-
excludeJavaHome
public UrlSet excludeJavaHome() throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
-
excludeJvm
public UrlSet excludeJvm() throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
-
excludePaths
public UrlSet excludePaths(java.lang.String pathString) throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
-
relative
public UrlSet relative(java.io.File file) throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
-
getUrls
public java.util.List<java.net.URL> getUrls()
-
size
public int size()
-
iterator
public java.util.Iterator<java.net.URL> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<java.net.URL>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
isOsx
public boolean isOsx()
-
-