public class ZipFileIndexCache extends Object
Constructor and Description |
---|
ZipFileIndexCache() |
Modifier and Type | Method and Description |
---|---|
void |
clearCache() |
void |
clearCache(long timeNotUsed) |
ZipFileIndex |
getExistingZipIndex(File zipFile) |
static ZipFileIndexCache |
getSharedInstance() |
ZipFileIndex |
getZipFileIndex(File zipFile,
RelativePath.RelativeDirectory symbolFilePrefix,
boolean useCache,
String cacheLocation,
boolean writeIndex) |
List<ZipFileIndex> |
getZipFileIndexes()
Returns a list of all ZipFileIndex entries
|
List<ZipFileIndex> |
getZipFileIndexes(boolean openedOnly)
Returns a list of all ZipFileIndex entries
|
static ZipFileIndexCache |
instance(Context context)
Get a context-specific instance of a cache.
|
void |
removeFromCache(File file) |
void |
setOpenedIndexes(List<ZipFileIndex> indexes)
Sets already opened list of ZipFileIndexes from an outside client
of the compiler.
|
public static ZipFileIndexCache getSharedInstance()
public static ZipFileIndexCache instance(Context context)
public List<ZipFileIndex> getZipFileIndexes()
public List<ZipFileIndex> getZipFileIndexes(boolean openedOnly)
openedOnly
- If true it returns a list of only opened ZipFileIndex entries, otherwise
all ZipFileEntry(s) are included into the list.public ZipFileIndex getZipFileIndex(File zipFile, RelativePath.RelativeDirectory symbolFilePrefix, boolean useCache, String cacheLocation, boolean writeIndex) throws IOException
IOException
public ZipFileIndex getExistingZipIndex(File zipFile)
public void clearCache()
public void clearCache(long timeNotUsed)
public void removeFromCache(File file)
public void setOpenedIndexes(List<ZipFileIndex> indexes) throws IllegalStateException
IllegalStateException
Copyright © 2017 earcam. All rights reserved.