public class AvatarTaggerImpl extends Object implements AvatarTagger
| Modifier and Type | Field and Description |
|---|---|
static String |
FORMAT_NAME |
AVATAR_SYSTEM_IMAGE_TYPE, JIRA_SYSTEM_IMAGE_TYPE| Constructor and Description |
|---|
AvatarTaggerImpl(JiraHome jiraHome) |
| Modifier and Type | Method and Description |
|---|---|
void |
saveTaggedAvatar(RenderedImage in,
String name,
File file)
Adds JIRA specific metadata to given image.
|
void |
saveTaggedAvatar(RenderedImage in,
String format,
OutputStream targetStream)
Adds JIRA specific metadata to given image.
|
void |
tag(InputStream inputStream,
OutputStream outputStream)
Add JIRA specific metadata to given file.
|
String |
tagAvatar(long id,
String filename)
Adds JIRA specific metadata to all avatar thumbnails.
|
void |
tagSingleAvatarFile(File source,
File destination)
Add JIRA specific metadata to given file.
|
public static final String FORMAT_NAME
public AvatarTaggerImpl(JiraHome jiraHome)
public String tagAvatar(long id, String filename) throws IOException
AvatarTaggertagAvatar in interface AvatarTaggerid - of the avatarfilename - of the avatar main imageIOExceptionpublic void tagSingleAvatarFile(File source, File destination) throws IOException
AvatarTaggertagSingleAvatarFile in interface AvatarTaggersource - file to be taggeddestination - in which the tagged file will be savedIOExceptionpublic void tag(InputStream inputStream, OutputStream outputStream) throws IOException
AvatarTaggertag in interface AvatarTaggerinputStream - pointing to the source which will be taggedoutputStream - pointing where the tagged file should be writtenIOExceptionpublic void saveTaggedAvatar(RenderedImage in, String format, OutputStream targetStream) throws IOException
AvatarTaggersaveTaggedAvatar in interface AvatarTaggerin - to be taggedformat - in which image will be savedtargetStream - output in which the tagged image will be savedIOExceptionpublic void saveTaggedAvatar(RenderedImage in, String name, File file) throws IOException
AvatarTaggersaveTaggedAvatar in interface AvatarTaggerin - to be taggedname - of the imagefile - in which the tagged image will be savedIOExceptionCopyright © 2002-2016 Atlassian. All Rights Reserved.