public class ImageCacheService
extends java.lang.Object
| Constructor and Description |
|---|
ImageCacheService(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearImageData(Path path,
long timeModified,
int type) |
boolean |
getImageData(Path path,
long timeModified,
int type,
BytesBufferPool.BytesBuffer buffer)
Gets the cached image data for the given
path,
timeModified and type. |
void |
putImageData(Path path,
long timeModified,
int type,
byte[] value) |
public boolean getImageData(Path path, long timeModified, int type, BytesBufferPool.BytesBuffer buffer)
path,
timeModified and type.
The image data will be stored in buffer.data, started from
buffer.offset for buffer.length bytes. If the
buffer.data is not big enough, a new byte array will be allocated and returned.public void putImageData(Path path, long timeModified, int type, byte[] value)
public void clearImageData(Path path, long timeModified, int type)