com.sun.tools.javac.file
Class ZipFileIndexArchive

java.lang.Object
  extended by com.sun.tools.javac.file.ZipFileIndexArchive
All Implemented Interfaces:
JavacFileManager.Archive

public class ZipFileIndexArchive
extends java.lang.Object
implements JavacFileManager.Archive


Nested Class Summary
static class ZipFileIndexArchive.ZipFileIndexFileObject
          A subclass of JavaFileObject representing zip entries using the com.sun.tools.javac.file.ZipFileIndex implementation.
 
Field Summary
private  JavacFileManager fileManager
           
private  ZipFileIndex zfIndex
           
 
Constructor Summary
ZipFileIndexArchive(JavacFileManager fileManager, ZipFileIndex zdir)
           
 
Method Summary
 void close()
           
 boolean contains(RelativePath name)
           
 JavaFileObject getFileObject(RelativePath.RelativeDirectory subdirectory, java.lang.String file)
           
 List<java.lang.String> getFiles(RelativePath.RelativeDirectory subdirectory)
           
 java.util.Set<RelativePath.RelativeDirectory> getSubdirectories()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

zfIndex

private final ZipFileIndex zfIndex

fileManager

private JavacFileManager fileManager
Constructor Detail

ZipFileIndexArchive

public ZipFileIndexArchive(JavacFileManager fileManager,
                           ZipFileIndex zdir)
                    throws java.io.IOException
Throws:
java.io.IOException
Method Detail

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