|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ThumbnailManager
| Field Summary | |
|---|---|
static String |
THUMBNAIL_PATH_SUFFIX
|
| Method Summary | |
|---|---|
boolean |
checkToolkit()
checks whether the users system has AWT toolkit required to create thumbnails |
int |
getMaxHeight()
|
int |
getMaxWidth()
|
Thumbnail |
getThumbnail(Attachment attachment)
retrieves the thumbnail for this attachment in the form of a Thumbnail Object this method also creates the actual thumbnail file on the filesystem if it does not exist |
InputStream |
getThumbnailData(Attachment attachment)
retrieves the thumbnail data (as a stream) from where it was stored in the file system |
File |
getThumbnailFile(Attachment attachment)
returns the path to the thumbnail for this attachment |
Collection |
getThumbnails(Collection attachments)
|
boolean |
isThumbnailable(Attachment attachment)
checks the mime type of the attachment to determine whether a thumbnail can be created from it |
| Field Detail |
|---|
static final String THUMBNAIL_PATH_SUFFIX
| Method Detail |
|---|
Collection getThumbnails(Collection attachments)
throws Exception
Exceptionboolean isThumbnailable(Attachment attachment)
attachment -
boolean checkToolkit()
InputStream getThumbnailData(Attachment attachment)
throws FileNotFoundException
attachment -
FileNotFoundExceptionFile getThumbnailFile(Attachment attachment)
attachment -
Thumbnail getThumbnail(Attachment attachment)
throws MalformedURLException,
FileNotFoundException
attachment -
MalformedURLException
FileNotFoundExceptionint getMaxHeight()
int getMaxWidth()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||