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 Details

  • Method Details

    • tagAvatar

      String tagAvatar(long id, String filename) throws IOException
      Adds JIRA specific metadata to all avatar thumbnails.
      Parameters:
      id - of the avatar
      filename - 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 tagged
      targetFormat - in which image will be saved
      target - output in which the tagged image will be saved
      Throws:
      IOException
    • tag

      void tag(InputStream inputStream, OutputStream outputStream) throws IOException
      Add JIRA specific metadata to given file.
      Parameters:
      inputStream - pointing to the source which will be tagged
      outputStream - pointing where the tagged file should be written
      Throws:
      IOException