at.dms.classfile
Class ZipClassDirectory

java.lang.Object
  |
  +--at.dms.classfile.ClassDirectory
        |
        +--at.dms.classfile.ZipClassDirectory

class ZipClassDirectory
extends ClassDirectory

An implementation of a conceptual directory which holds Java class files, using a zip or jar file in the file system.


Constructor Summary
ZipClassDirectory(java.io.File zip)
          Constructs a class directory implemented by a .zip or .jar file.
ZipClassDirectory(java.util.zip.ZipFile zip)
          Constructs a class directory implemented by a .zip or .jar file.
 
Method Summary
 ClassDescription getClassFile(java.lang.String name)
          Returns a ClassDescription object that represents the named class.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipClassDirectory

public ZipClassDirectory(java.io.File zip)
                  throws java.io.IOException
Constructs a class directory implemented by a .zip or .jar file.

ZipClassDirectory

public ZipClassDirectory(java.util.zip.ZipFile zip)
Constructs a class directory implemented by a .zip or .jar file.
Method Detail

getClassFile

public ClassDescription getClassFile(java.lang.String name)
Returns a ClassDescription object that represents the named class.
Overrides:
getClassFile in class ClassDirectory
Parameters:
name - The name of the class.
Returns:
A ClassDescription object that represents the named class, or null if this ClassDirectory does not contain the named class.