| Modifier and Type | Field and Description |
|---|---|
java.io.File |
file |
| Constructor and Description |
|---|
FileCache(java.io.File file) |
FileCache(java.io.File file,
DiskUsage diskUsage) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(byte[] data,
int length) |
long |
available() |
void |
close() |
void |
complete() |
java.io.File |
getFile()
Returns file to be used fo caching.
|
boolean |
isCompleted() |
int |
read(byte[] buffer,
long offset,
int length) |
public FileCache(java.io.File file)
throws ProxyCacheException
ProxyCacheExceptionpublic FileCache(java.io.File file,
DiskUsage diskUsage)
throws ProxyCacheException
ProxyCacheExceptionpublic long available()
throws ProxyCacheException
available in interface CacheProxyCacheExceptionpublic int read(byte[] buffer,
long offset,
int length)
throws ProxyCacheException
read in interface CacheProxyCacheExceptionpublic void append(byte[] data,
int length)
throws ProxyCacheException
append in interface CacheProxyCacheExceptionpublic void close()
throws ProxyCacheException
close in interface CacheProxyCacheExceptionpublic void complete()
throws ProxyCacheException
complete in interface CacheProxyCacheExceptionpublic boolean isCompleted()
isCompleted in interface Cachepublic java.io.File getFile()