Class ImageFileResource


public class ImageFileResource extends FileResource
An image file resource. Mimetype starts with "image/".
  • Constructor Details

    • ImageFileResource

      public ImageFileResource()
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class FileResource
    • getHeight

      public int getHeight()
      Returns:
      height in pixel
    • getWidth

      public int getWidth()
      Returns:
      width in pixel
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class FileResource
    • init

      protected void init()
      Description copied from class: UniqueObject
      Use to initialize member variables, used by default constructor and builder
      Overrides:
      init in class FileResource
    • setHeight

      public void setHeight(int height)
      Parameters:
      height - height in pixel
    • setWidth

      public void setWidth(int width)
      Parameters:
      width - width in pixel