Package com.cksource.ckfinder.image
Class Thumb
java.lang.Object
com.cksource.ckfinder.image.Thumb
Class representing a thumbnail image.
-
Constructor Summary
ConstructorDescriptionThumb
(InputStream inputStream, String mimeType) Constructs thumbnail image using given image data stream. -
Method Summary
Modifier and TypeMethodDescriptionstatic Thumb
static Thumb
fromInputStream
(InputStream inputStream) Factory method that constructsThumb
using image data stream.
-
Constructor Details
-
Thumb
Constructs thumbnail image using given image data stream.- Parameters:
inputStream
- image data streammimeType
- image mime type
-
-
Method Details
-
fromImage
- Parameters:
image
- image to create the thumbnail from- Returns:
- created thumbnail image
- Throws:
IOException
- in case of processing exception
-
fromInputStream
Factory method that constructsThumb
using image data stream.- Parameters:
inputStream
- image data stream- Returns:
- created thumbnail image
- Throws:
IOException
- in case of processing exception
-
getInputStream
- Returns:
- this thumbnail input stream
-
getMimeType
- Returns:
- this thumbnail mime type
-