org.apache.xbean.finder
Class UrlSet

java.lang.Object
  extended by org.apache.xbean.finder.UrlSet

public class UrlSet
extends java.lang.Object

Version:
$Rev$ $Date$

Constructor Summary
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)
           
 
Method Summary
 UrlSet exclude(java.lang.ClassLoader parent)
           
 UrlSet exclude(java.io.File file)
           
 UrlSet exclude(java.lang.String pattern)
           
 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)
           
 java.util.List<java.net.URL> getUrls()
           
 UrlSet include(UrlSet urlSet)
           
 UrlSet matching(java.lang.String pattern)
           
 UrlSet relative(java.io.File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

include

public UrlSet include(UrlSet urlSet)

exclude

public UrlSet exclude(UrlSet urlSet)

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

excludePaths

public UrlSet excludePaths(java.lang.String pathString)
                    throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

matching

public UrlSet matching(java.lang.String pattern)

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()


Copyright © 2005-2011. All Rights Reserved.