| java.lang.Object java.lang.ClassLoader org.xorm.tools.jar.JarClassFinder
JarClassFinder | public class JarClassFinder extends ClassLoader (Code) | | Utility for finding classes of a particular type within a JAR file.
author: Dan Checkoway |
DEFAULT_MAX_ITERATIONS | final public static int DEFAULT_MAX_ITERATIONS(Code) | | The default max number of iterations when loading classes
|
maxIterations | protected int maxIterations(Code) | | The max number of iterations when loading classes
|
JarClassFinder | public JarClassFinder()(Code) | | Create a JarClassFinder using the default max number of iterations
|
JarClassFinder | public JarClassFinder(int maxIterations)(Code) | | Create a JarClassFinder using a specific max number of iterations
|
findClassesOfType | public Collection findClassesOfType(Class baseClass, String jarFileName) throws IOException(Code) | | Find classes of a certain type within a JAR file
Parameters: baseClass - the type of class to look for Parameters: jarFileName - the name/path of the JAR file to examine a Collection of matching Class objects, or an emptyCollection if no matching classes are found |
findClassesOfType | public Collection findClassesOfType(Class baseClass, File jarFile) throws IOException(Code) | | Find classes of a certain type within a JAR file
Parameters: baseClass - the type of class to look for Parameters: jarFile - the JAR file to examine a Collection of matching Class objects, or an emptyCollection if no matching classes are found |
findClassesOfType | public Collection findClassesOfType(Class baseClass, InputStream inputStream) throws IOException(Code) | | Find classes of a certain type within JAR content
Parameters: baseClass - the type of class to look for Parameters: inputStream - an input stream with the JAR content to examine a Collection of matching Class objects, or an emptyCollection if no matching classes are found |
readClassData | protected byte[] readClassData(InputStream input) throws IOException(Code) | | Read class data for a JAR entry
Parameters: input - the JAR input stream a byte array representing the class data |
Methods inherited from java.lang.ClassLoader | public synchronized void clearAssertionStatus()(Code)(Java Doc) final protected Class> defineClass(byte[] b, int off, int len) throws ClassFormatError(Code)(Java Doc) final protected Class> defineClass(String name, byte[] b, int off, int len) throws ClassFormatError(Code)(Java Doc) final protected Class> defineClass(String name, byte[] b, int off, int len, ProtectionDomain protectionDomain) throws ClassFormatError(Code)(Java Doc) final protected Class> defineClass(String name, java.nio.ByteBuffer b, ProtectionDomain protectionDomain) throws ClassFormatError(Code)(Java Doc) protected Package definePackage(String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase) throws IllegalArgumentException(Code)(Java Doc) protected Class> findClass(String name) throws ClassNotFoundException(Code)(Java Doc) protected String findLibrary(String libname)(Code)(Java Doc) final protected Class> findLoadedClass(String name)(Code)(Java Doc) protected URL findResource(String name)(Code)(Java Doc) protected Enumeration<URL> findResources(String name) throws IOException(Code)(Java Doc) final protected Class> findSystemClass(String name) throws ClassNotFoundException(Code)(Java Doc) protected Package getPackage(String name)(Code)(Java Doc) protected Package[] getPackages()(Code)(Java Doc) final public ClassLoader getParent()(Code)(Java Doc) public URL getResource(String name)(Code)(Java Doc) public InputStream getResourceAsStream(String name)(Code)(Java Doc) public Enumeration<URL> getResources(String name) throws IOException(Code)(Java Doc) public static ClassLoader getSystemClassLoader()(Code)(Java Doc) public static URL getSystemResource(String name)(Code)(Java Doc) public static InputStream getSystemResourceAsStream(String name)(Code)(Java Doc) public static Enumeration<URL> getSystemResources(String name) throws IOException(Code)(Java Doc) public Class> loadClass(String name) throws ClassNotFoundException(Code)(Java Doc) protected synchronized Class> loadClass(String name, boolean resolve) throws ClassNotFoundException(Code)(Java Doc) final protected void resolveClass(Class> c)(Code)(Java Doc) public synchronized void setClassAssertionStatus(String className, boolean enabled)(Code)(Java Doc) public synchronized void setDefaultAssertionStatus(boolean enabled)(Code)(Java Doc) public synchronized void setPackageAssertionStatus(String packageName, boolean enabled)(Code)(Java Doc) final protected void setSigners(Class> c, Object[] signers)(Code)(Java Doc)
|
|
|