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
AvatarTagger
tagAvatar
in interface AvatarTagger
id
- of the avatarfilename
- of the avatar main imageIOException
public void tagSingleAvatarFile(File source, File destination) throws IOException
AvatarTagger
tagSingleAvatarFile
in interface AvatarTagger
source
- file to be taggeddestination
- in which the tagged file will be savedIOException
public void tag(InputStream inputStream, OutputStream outputStream) throws IOException
AvatarTagger
tag
in interface AvatarTagger
inputStream
- pointing to the source which will be taggedoutputStream
- pointing where the tagged file should be writtenIOException
public void saveTaggedAvatar(RenderedImage in, String format, OutputStream targetStream) throws IOException
AvatarTagger
saveTaggedAvatar
in interface AvatarTagger
in
- to be taggedformat
- in which image will be savedtargetStream
- output in which the tagged image will be savedIOException
public void saveTaggedAvatar(RenderedImage in, String name, File file) throws IOException
AvatarTagger
saveTaggedAvatar
in interface AvatarTagger
in
- to be taggedname
- of the imagefile
- in which the tagged image will be savedIOException
Copyright © 2002-2022 Atlassian. All Rights Reserved.