org.multijava.util.classfile
Class ZipClassDirectory
java.lang.Object
org.multijava.util.classfile.ClassDirectory
org.multijava.util.classfile.ZipClassDirectory
- class ZipClassDirectory
- extends ClassDirectory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
zip
private ZipFile zip
dirsInZip
private HashSet dirsInZip
ZipClassDirectory
public ZipClassDirectory(ZipFile zip)
- Constructs a class directory representing a zipped file
getClassFile
public ClassPath.ClassDescription getClassFile(String name,
String suffix)
- Parameters:
name - the name of the class
- Returns:
- a ClassDescription for a class file that contain the class named name
getClassFile
public ClassPath.ClassDescription getClassFile(String name)
location
public String location()
- Returns the location of the directory, in this case as the location of the zip file.
findFile
public ClassPath.ClassDescription findFile(String name,
String suffix)
- Returns null since we do not support reading non-.class files from
zip or jar archives.
containsDirectory
public boolean containsDirectory(String name)
- Returns true if the zip file contains the given directory.
populateDirsInZip
private void populateDirsInZip()
mjc is Copyright (C) 2000-2004 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. mjc is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.