com.sun.tools.javac.file
Class ZipArchive
java.lang.Object
com.sun.tools.javac.file.ZipArchive
- All Implemented Interfaces:
- JavacFileManager.Archive
- Direct Known Subclasses:
- SymbolArchive
public class ZipArchive
- extends java.lang.Object
- implements JavacFileManager.Archive
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
fileManager
protected JavacFileManager fileManager
map
protected final java.util.Map<RelativePath.RelativeDirectory,List<java.lang.String>> map
zdir
protected final java.util.zip.ZipFile zdir
ZipArchive
public ZipArchive(JavacFileManager fm,
java.util.zip.ZipFile zdir)
throws java.io.IOException
- Throws:
java.io.IOException
ZipArchive
protected ZipArchive(JavacFileManager fm,
java.util.zip.ZipFile zdir,
boolean initMap)
throws java.io.IOException
- Throws:
java.io.IOException
initMap
protected void initMap()
throws java.io.IOException
- Throws:
java.io.IOException
addZipEntry
void addZipEntry(java.util.zip.ZipEntry entry)
contains
public boolean contains(RelativePath name)
- Specified by:
contains in interface JavacFileManager.Archive
getFiles
public List<java.lang.String> getFiles(RelativePath.RelativeDirectory subdirectory)
- Specified by:
getFiles in interface JavacFileManager.Archive
getFileObject
public JavaFileObject getFileObject(RelativePath.RelativeDirectory subdirectory,
java.lang.String file)
- Specified by:
getFileObject in interface JavacFileManager.Archive
getSubdirectories
public java.util.Set<RelativePath.RelativeDirectory> getSubdirectories()
- Specified by:
getSubdirectories in interface JavacFileManager.Archive
close
public void close()
throws java.io.IOException
- Specified by:
close in interface JavacFileManager.Archive
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object