public interface ThumbnailService
Modifier and Type | Method and Description |
---|---|
Thumbnail |
generateThumbnail(InputStream inputStream,
com.google.common.net.MediaType mediaType,
int thumbnailMaxHeight,
PreviewType previewType,
Date lastModifiedDate)
Generates a thumbnail for the given input stream and
PreviewType . |
Thumbnail generateThumbnail(InputStream inputStream, com.google.common.net.MediaType mediaType, int thumbnailMaxHeight, PreviewType previewType, Date lastModifiedDate)
PreviewType
.inputStream
- the input stream for which the thumbnail is generatedmediaType
- the media type of the filethumbnailMaxHeight
- the maximum height of the thumbnail. Use 0 if the image should be returned in the original sizepreviewType
- the preview type for which the thumbnail is generatedlastModifiedDate
- the last modified date.IllegalArgumentException
- if preview type is unknownIllegalStateException
- if default thumbnail image is not found in classpathCopyright © 2010 - 2017 edorasware ag. All Rights Reserved.