gnu.bytecode
Class ZipLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by gnu.bytecode.ZipLoader

public class ZipLoader
extends java.lang.ClassLoader

Load classes from a Zip archive.


Constructor Summary
ZipLoader(java.lang.String name)
           
 
Method Summary
 void close()
          Close the zip archive - loadClass will reopen if necessary.
 void loadAllClasses()
          Load all classes immediately from zip archive, close archive.
 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

ZipLoader

public ZipLoader(java.lang.String name)
          throws java.io.IOException
Throws:
java.io.IOException
Method Detail

loadClass

public 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

loadAllClasses

public void loadAllClasses()
                    throws java.io.IOException
Load all classes immediately from zip archive, close archive.

Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Close the zip archive - loadClass will reopen if necessary.

Throws:
java.io.IOException