org.xnap.util
Class ZipFileClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by org.xnap.util.ZipFileClassLoader

public class ZipFileClassLoader
extends java.lang.ClassLoader

Provides a class loader that can load classes from zip files. BTW, jar files are in zip format.


Constructor Summary
ZipFileClassLoader(java.util.zip.ZipFile zipFile)
           
 
Method Summary
 java.lang.String getFilename()
           
protected  java.lang.Class loadClass(java.lang.String name, boolean resolve)
           
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipFileClassLoader

public ZipFileClassLoader(java.util.zip.ZipFile zipFile)
Method Detail

getFilename

public java.lang.String getFilename()

loadClass

protected java.lang.Class loadClass(java.lang.String name,
                                    boolean resolve)
                             throws java.lang.ClassNotFoundException
Overrides:
loadClass in class java.lang.ClassLoader
Throws:
java.lang.ClassNotFoundException


Copyright © 2001-2005 XNap Team. All Rights Reserved.