Package com.cksource.ckfinder.image
Class ThumbManager
java.lang.Object
com.cksource.ckfinder.image.ThumbManager
Request scoped service used for thumbnails processing.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected Cache
protected Config.PrivateDir
protected Config.Thumbnails
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteThumbs
(ResourceType resourceType, String folderPath, String fileName) Removes all thumbnail images generated for given image file.getThumbnail
(ResourceType resourceType, String folderPath, String fileName, ImageSize requestedSize) Returns a thumbnail image generated for given image file.
-
Field Details
-
cache
-
privateDirConfig
-
thumbnailsConfig
-
-
Constructor Details
-
ThumbManager
public ThumbManager()
-
-
Method Details
-
getThumbnail
public Thumb getThumbnail(ResourceType resourceType, String folderPath, String fileName, ImageSize requestedSize) throws IOException Returns a thumbnail image generated for given image file.- Parameters:
resourceType
- resource typefolderPath
- folder pathfileName
- file namerequestedSize
- requested thumb size- Returns:
- thumbnail image generated for given image file
- Throws:
IOException
- in case of any processing exception
-
deleteThumbs
Removes all thumbnail images generated for given image file.- Parameters:
resourceType
- resource typefolderPath
- folder pathfileName
- image file name
-