Package javassist
Class JarDirClassPath
- java.lang.Object
-
- javassist.JarDirClassPath
-
-
Field Summary
Fields Modifier and Type Field Description (package private) JarClassPath[]jars
-
Constructor Summary
Constructors Constructor Description JarDirClassPath(java.lang.String dirName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()This method is invoked when theClassPathobject is detached from the search path.java.net.URLfind(java.lang.String classname)Returns the uniform resource locator (URL) of the class file with the specified name.java.io.InputStreamopenClassfile(java.lang.String classname)Opens a class file.
-
-
-
Field Detail
-
jars
JarClassPath[] jars
-
-
Constructor Detail
-
JarDirClassPath
JarDirClassPath(java.lang.String dirName) throws NotFoundException- Throws:
NotFoundException
-
-
Method Detail
-
openClassfile
public java.io.InputStream openClassfile(java.lang.String classname) throws NotFoundExceptionDescription copied from interface:ClassPathOpens a class file. This method may be called just to examine whether the class file exists as well as to read the contents of the file.This method can return null if the specified class file is not found. If null is returned, the next search path is examined. However, if an error happens, this method must throw an exception so that the search will be terminated.
This method should not modify the contents of the class file.
- Specified by:
openClassfilein interfaceClassPath- Parameters:
classname- a fully-qualified class name- Returns:
- the input stream for reading a class file
- Throws:
NotFoundException- See Also:
Translator
-
find
public java.net.URL find(java.lang.String classname)
Description copied from interface:ClassPathReturns the uniform resource locator (URL) of the class file with the specified name.
-
-