Class Archive
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.tool.Archive
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
JrtFileSystem
Used as a zip file cache.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcacheTypes(String packageName, String typeName) voidclose()booleanvoidflush()getArchiveFileObject(String fileName, String module, Charset charset) Returns an array of String - the array contains exactly two elements.toString()
-
Field Details
-
UNKNOWN_ARCHIVE
-
packagesCache
-
-
Constructor Details
-
Archive
protected Archive() -
Archive
- Throws:
ZipExceptionIOException
-
-
Method Details
-
cacheTypes
-
getArchiveFileObject
-
contains
-
allPackages
-
getTypes
Returns an array of String - the array contains exactly two elements. The first element is the name of the type and the second being the module that contains the type. For a regular Jar archive, the module element will be null. This is applicable only to Jimage files where types are contained by multiple modules. -
flush
public void flush() -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
toString
-