public class ZipArchive extends Object implements JavacFileManager.Archive
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
Modifier and Type | Class and Description |
---|---|
static class |
ZipArchive.ZipFileObject
A subclass of JavaFileObject representing zip entries.
|
Modifier and Type | Field and Description |
---|---|
protected Reference<File> |
absFileRef
A reference to the absolute filename for the zip file for the archive.
|
protected JavacFileManager |
fileManager
The file manager that created this archive.
|
protected Map<RelativePath.RelativeDirectory,List<String>> |
map
The index for the contents of this archive.
|
protected ZipFile |
zfile
The zip file for the archive.
|
Modifier | Constructor and Description |
---|---|
|
ZipArchive(JavacFileManager fm,
ZipFile zfile) |
protected |
ZipArchive(JavacFileManager fm,
ZipFile zfile,
boolean initMap) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
contains(RelativePath name) |
JavaFileObject |
getFileObject(RelativePath.RelativeDirectory subdirectory,
String file) |
List<String> |
getFiles(RelativePath.RelativeDirectory subdirectory) |
Set<RelativePath.RelativeDirectory> |
getSubdirectories() |
protected void |
initMap() |
String |
toString() |
protected JavacFileManager fileManager
protected final Map<RelativePath.RelativeDirectory,List<String>> map
protected final ZipFile zfile
public ZipArchive(JavacFileManager fm, ZipFile zfile) throws IOException
IOException
protected ZipArchive(JavacFileManager fm, ZipFile zfile, boolean initMap) throws IOException
IOException
protected void initMap() throws IOException
IOException
public boolean contains(RelativePath name)
contains
in interface JavacFileManager.Archive
public List<String> getFiles(RelativePath.RelativeDirectory subdirectory)
getFiles
in interface JavacFileManager.Archive
public JavaFileObject getFileObject(RelativePath.RelativeDirectory subdirectory, String file)
getFileObject
in interface JavacFileManager.Archive
public Set<RelativePath.RelativeDirectory> getSubdirectories()
getSubdirectories
in interface JavacFileManager.Archive
public void close() throws IOException
close
in interface JavacFileManager.Archive
IOException
Copyright © 2016. All rights reserved.