|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public static final String THUMBNAIL_PATH_SUFFIX
Method Detail |
public Collection getThumbnails(Collection attachments) throws Exception
Exception
public boolean isThumbnailable(Attachment attachment)
attachment
-
public boolean checkToolkit()
public InputStream getThumbnailData(Attachment attachment) throws FileNotFoundException
attachment
-
FileNotFoundException
public File getThumbnailFile(Attachment attachment)
attachment
-
public Thumbnail getThumbnail(Attachment attachment) throws MalformedURLException, FileNotFoundException
attachment
-
MalformedURLException
FileNotFoundException
public int getMaxHeight()
public int getMaxWidth()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |