|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
K - Key of the cache, should conform the requirements for keys of Map.public interface FileCache<K>
Represents a file cache.
| Method Summary | |
|---|---|
void |
clear()
Remove all entries in the cache. |
void |
stream(K key,
OutputStream dest,
FileCacheStreamProvider input)
Stream the contents identified by the key to the destination stream. |
| Method Detail |
|---|
void stream(K key,
OutputStream dest,
FileCacheStreamProvider input)
throws DownloadException
key - can not be nulldest - where to write the cached item toinput - provides the underlying item on a cache-miss
DownloadException - if there was an error writing to dest, or reading from input, or reading from the cachevoid clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||