Package com.atlassian.crowd.util
Class ImageInfo
java.lang.Object
com.atlassian.crowd.util.ImageInfo
Class represents information about image based on it's data URL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
fromImageData
(String imageData) Extracts base64 encoded image data to theImageInfo
getName()
int
hashCode()
void
setExtension
(String extension) void
setImageBase64
(String imageBase64) void
-
Constructor Details
-
ImageInfo
public ImageInfo() -
ImageInfo
-
-
Method Details
-
fromImageData
Extracts base64 encoded image data to theImageInfo
- Parameters:
imageData
- base64 encoded image (e.g. data:image/png;base64, iVBORw0KG...==)- Returns:
- Image info or empty
-
getName
-
getImageBase64
-
getExtension
-
setExtension
-
setImageBase64
-
setName
-
equals
-
hashCode
public int hashCode()
-