Class Thumb

java.lang.Object
com.cksource.ckfinder.image.Thumb

public class Thumb extends Object
Class representing a thumbnail image.
  • Constructor Details

    • Thumb

      public Thumb(InputStream inputStream, String mimeType)
      Constructs thumbnail image using given image data stream.
      Parameters:
      inputStream - image data stream
      mimeType - image mime type
  • Method Details

    • fromImage

      public static Thumb fromImage(Image image) throws IOException
      Factory method that constructs Thumb using an instance of Image.
      Parameters:
      image - image to create the thumbnail from
      Returns:
      created thumbnail image
      Throws:
      IOException - in case of processing exception
    • fromInputStream

      public static Thumb fromInputStream(InputStream inputStream) throws IOException
      Factory method that constructs Thumb using image data stream.
      Parameters:
      inputStream - image data stream
      Returns:
      created thumbnail image
      Throws:
      IOException - in case of processing exception
    • getInputStream

      public InputStream getInputStream()
      Returns:
      this thumbnail input stream
    • getMimeType

      public String getMimeType()
      Returns:
      this thumbnail mime type