net.sourceforge.pmd.util
Class ClasspathClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by net.sourceforge.pmd.util.ClasspathClassLoader

public class ClasspathClassLoader
extends URLClassLoader

Create a ClassLoader which loads classes using a CLASSPATH like String. If the String looks like a URL to a file (e.g. starts with file://) the file will be read with each line representing an path on the classpath.

Author:
Edwin Chan

Constructor Summary
ClasspathClassLoader(String classpath, ClassLoader parent)
           
 
Method Summary
 String toString()
          
 
Methods inherited from class java.net.URLClassLoader
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClasspathClassLoader

public ClasspathClassLoader(String classpath,
                            ClassLoader parent)
                     throws IOException
Throws:
IOException
Method Detail

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2002-2015 InfoEther. All Rights Reserved.