Package gnu.bytecode

Class ZipLoader


  • public class ZipLoader
    extends java.lang.ClassLoader
    Load classes from a Zip archive.
    • Constructor Summary

      Constructors 
      Constructor Description
      ZipLoader​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Close the zip archive - loadClass will reopen if necessary.
      java.lang.Class 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, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, 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 java.lang.Class loadAllClasses()
                                       throws java.io.IOException
        Load all classes immediately from zip archive, close archive.
        Returns:
        main class (1st class in 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