|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CacheManager
The cache manager represents an object which is responsible for the creating and deleting cache files for an image in the MyCore system.
| Method Summary | |
|---|---|
void |
deleteImage(MCRFile image)
Deletes every cache version for the original image. |
void |
deleteImage(MCRFile image,
String filename)
Deletes one certain cache version for the original image. |
boolean |
existInCache(MCRFile image)
Checks if the original image has at least one cache version. |
boolean |
existInCache(MCRFile image,
String filename)
Checks if one certain cache version of the original image exists in cache. |
void |
getImage(MCRFile image,
String filename,
OutputStream imageData)
Get the cache version of the image. |
InputStream |
getImageAsInputStream(MCRFile image,
String filename)
|
int |
getImgHeight(MCRFile image)
Get the width of the original image height is stored in the cache |
int |
getImgWidth(MCRFile image)
Get the width of the original image which is stored in the cache |
void |
saveImage(MCRFile image,
String filename,
InputStream imageData)
Save the edited image as cache for the original image. |
void |
setImgSize(MCRFile image,
int width,
int height)
Save the size of the original image in the cache. |
| Method Detail |
|---|
void getImage(MCRFile image,
String filename,
OutputStream imageData)
image - the original imagefilename - the cache version thumbnail etc.imageData - the cached image
InputStream getImageAsInputStream(MCRFile image,
String filename)
throws IOException
IOException
void saveImage(MCRFile image,
String filename,
InputStream imageData)
image - the original imagefilename - the cache versionimageData - the cached image
void deleteImage(MCRFile image,
String filename)
image - the original imagefilename - the cache version of the original imagevoid deleteImage(MCRFile image)
image - the original image
boolean existInCache(MCRFile image,
String filename)
image - the original imagefilename - the cache version
boolean existInCache(MCRFile image)
image -
int getImgWidth(MCRFile image)
image - the original image
int getImgHeight(MCRFile image)
image - the original image
void setImgSize(MCRFile image,
int width,
int height)
image - the original imagewidth - original image widthheight - original image height
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||