Interface IThumbnail


public interface IThumbnail
Since:
3.17.1
  • Method Summary

    Modifier and Type
    Method
    Description
    Note: It always returns the same data for the same IThumbnail even if the thumbnail is generated before or while this method is being called.
    boolean
    Note: It always returns the same value if the thumbnail is generated before or while this method is being called.
  • Method Details

    • getContent

      @NotNull InputStream getContent()
      Note: It always returns the same data for the same IThumbnail even if the thumbnail is generated before or while this method is being called. It also triggers the generation of the thumbnail if does not exist.
      Returns:
      the stream of the generated thumbnail if isGenerated() is true. Otherwise it returns the stream of the file icon. Caller of this method is responsible for closing the stream.
    • isGenerated

      boolean isGenerated()
      Note: It always returns the same value if the thumbnail is generated before or while this method is being called.
      Returns:
      true if the thumbnail is generated. Otherwise return false.