Package com.atlassian.jira.avatar
Interface AvatarTagger
- All Known Implementing Classes:
AvatarTaggerImpl
public interface AvatarTagger
Saves an image as a png with metadata signifying this image is a JIRA Avatar
(used by the email handler to decide whether or not to attach an image)
- Since:
- v6.1
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidsaveTaggedAvatar(RenderedImage image, String targetFormat, OutputStream target) Adds JIRA specific metadata to given image.voidtag(InputStream inputStream, OutputStream outputStream) Add JIRA specific metadata to given file.Adds JIRA specific metadata to all avatar thumbnails.
-
Field Details
-
JIRA_SYSTEM_IMAGE_TYPE
- See Also:
-
AVATAR_SYSTEM_IMAGE_TYPE
- See Also:
-
-
Method Details
-
tagAvatar
Adds JIRA specific metadata to all avatar thumbnails.- Parameters:
id- of the avatarfilename- of the avatar main image- Returns:
- the name of tagged avatar image
- Throws:
IOException
-
saveTaggedAvatar
void saveTaggedAvatar(RenderedImage image, String targetFormat, OutputStream target) throws IOException Adds JIRA specific metadata to given image.- Parameters:
image- to be taggedtargetFormat- in which image will be savedtarget- output in which the tagged image will be saved- Throws:
IOException
-
tag
Add JIRA specific metadata to given file.- Parameters:
inputStream- pointing to the source which will be taggedoutputStream- pointing where the tagged file should be written- Throws:
IOException
-