public class FileSystemCache extends java.lang.Object implements WebJarExtractor.Cache
| Constructor and Description |
|---|
FileSystemCache(java.io.File cache) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isUpToDate(java.lang.String key,
WebJarExtractor.Cacheable cacheable)
Whether the file is up to date.
|
void |
put(java.lang.String key,
WebJarExtractor.Cacheable cacheable)
Put the given file in the cache.
|
void |
reset() |
void |
save() |
public FileSystemCache(java.io.File cache)
throws java.io.IOException
java.io.IOExceptionpublic boolean isUpToDate(java.lang.String key,
WebJarExtractor.Cacheable cacheable)
WebJarExtractor.CacheisUpToDate in interface WebJarExtractor.Cachekey - The key to check.cacheable - The cacheable to check.public void put(java.lang.String key,
WebJarExtractor.Cacheable cacheable)
WebJarExtractor.Cacheput in interface WebJarExtractor.Cachekey - The key to put it at.cacheable - The cacheable.public void save()
throws java.io.IOException
java.io.IOExceptionpublic void reset()
throws java.io.IOException
java.io.IOExceptionCopyright © 2015. All Rights Reserved.