public interface ThumbnailPreview
Modifier and Type | Method and Description |
---|---|
boolean |
accept(com.google.common.net.MediaType mediaType)
Checks if the thumbnail preview is capable to create a thumbnail of the given media type.
|
Thumbnail |
createThumbnail(InputStream inputStream,
int maxThumbnailHeight,
Date lastModifiedDate)
Creates the thumbnail for the given inputStream and the maximum thumbnail height.
|
boolean accept(com.google.common.net.MediaType mediaType)
mediaType
- the media type.Thumbnail createThumbnail(InputStream inputStream, int maxThumbnailHeight, Date lastModifiedDate)
inputStream
- the input stream for which the thumbnail is generatedmaxThumbnailHeight
- the maximum height of the thumbnail. 0 if original size should be usedlastModifiedDate
- the last modified date of the thumbnailCopyright © 2010 - 2017 edorasware ag. All Rights Reserved.