public interface ThumbnailPreview
Interface for thumbnail preview strategies.
| 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,
               Instant lastModifiedDate)
Creates the thumbnail for the given inputStream and the maximum thumbnail height. 
 | 
boolean accept(com.google.common.net.MediaType mediaType)
Checks if the thumbnail preview is capable to create a thumbnail of the given media type.
mediaType - the media type.Thumbnail createThumbnail(InputStream inputStream, int maxThumbnailHeight, Instant lastModifiedDate)
Creates the thumbnail for the given inputStream and the maximum thumbnail height.
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 - 2018 edorasware ag. All Rights Reserved.