|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.findbugs.ba.URLClassPath
public class URLClassPath
A work-alike class to use instead of BCEL's ClassPath class. The main difference is that URLClassPath can load classfiles from URLs.
Constructor Summary | |
---|---|
URLClassPath()
Constructor. |
Method Summary | |
---|---|
void |
addURL(java.lang.String fileName)
Add given filename/URL to the classpath. |
void |
close()
Close all underlying resources. |
java.lang.String |
getClassPath()
Return the classpath string. |
static java.lang.String |
getFileExtension(java.lang.String fileName)
Get the file extension of given fileName. |
static java.lang.String |
getURLProtocol(java.lang.String urlString)
Get the URL protocol of given URL string. |
static boolean |
isArchiveExtension(java.lang.String fileExtension)
Determine if given file extension indicates an archive file. |
org.apache.bcel.classfile.JavaClass |
lookupClass(java.lang.String className)
Look up a class from the classpath. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URLClassPath()
Method Detail |
---|
public void addURL(java.lang.String fileName) throws java.io.IOException
fileName
- filename or URL of codebase (directory or archive file)
java.io.IOException
- if entry is invalid or does not existpublic java.lang.String getClassPath()
public org.apache.bcel.classfile.JavaClass lookupClass(java.lang.String className) throws java.lang.ClassNotFoundException
className
- name of class to look up
java.lang.ClassNotFoundException
- if the class couldn't be foundpublic void close()
public static java.lang.String getURLProtocol(java.lang.String urlString)
urlString
- the URL string
public static java.lang.String getFileExtension(java.lang.String fileName)
public static boolean isArchiveExtension(java.lang.String fileExtension)
fileExtension
- the file extension (e.g., ".jar")
|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |