Class MimeEnabledImageFlavor


public class MimeEnabledImageFlavor extends RefinedImageFlavor
Special image flavor subclass which enables the restriction to a particular MIME type.
  • Constructor Details

    • MimeEnabledImageFlavor

      public MimeEnabledImageFlavor(ImageFlavor parentFlavor, String mime)
      Constructs a new image flavor.
      Parameters:
      parentFlavor - the parent image flavor
      mime - a MIME type refining the parent image flavor
  • Method Details

    • getMimeType

      public String getMimeType()
      Returns the MIME type that the image flavor represents if a MIME type is available. This is only applicable to images which can also exist as files. For images flavors like decoded in-memory images (Rendered/BufferedImage), this method will return null.
      Overrides:
      getMimeType in class RefinedImageFlavor
      Returns:
      the MIME type or null if no MIME type can be provided (like for in-memory images)
    • equals

      public boolean equals(Object o)
      Description copied from class: ImageFlavor
      Overrides:
      equals in class ImageFlavor
    • hashCode

      public int hashCode()
      Description copied from class: ImageFlavor
      Overrides:
      hashCode in class ImageFlavor