- public class Cache
- extends kllist
Represents the server's internal file cache.
Cache()
-
add(klentry, klentry)
- Used internally for cache maintenance.
flush()
- Empties the cache.
get(String)
- Returns a CacheEntry object which represents the file specified.
get(String, String)
- Returns a CacheEntry object which represents the entry specified in the
.zip or .jar file specified.
remove(klentry)
- Used internally for cache maintenance.
Cache
public Cache()
add
public void add(klentry tentry,
klentry tprev)
Used internally for cache maintenance.
Do not call this method!
- Overrides:
- add in class kllist
remove
public void remove(klentry tentry)
Used internally for cache maintenance.
Do not call this method!
- Overrides:
- remove in class kllist
get
public klentry get(java.lang.String fileName)
Returns a CacheEntry object which represents the file specified.
The result must be cast to CacheEntry. The CacheEntry object is created
and added to the cache or updated if necessary.
- Overrides:
- get in class kllist
get
public klentry get(java.lang.String archive,
java.lang.String entry)
Returns a CacheEntry object which represents the entry specified in the
.zip or .jar file specified.
The result must be cast to CacheEntry. The CacheEntry object is created
and added to the cache or updated if necessary.
flush
public void flush()
Empties the cache.