com.atlassian.jira.issue.attachment
Class AttachmentZipFileCreator

java.lang.Object
  extended by com.atlassian.jira.issue.attachment.AttachmentZipFileCreator

public class AttachmentZipFileCreator
extends java.lang.Object

This class can create temporary zip files containing all the attachments on an issue

Since:
v4.1

Constructor Summary
AttachmentZipFileCreator(Issue issue)
           
 
Method Summary
 java.io.File toZipFile()
          This will return a ZIP file that contains all the attachments of an issue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentZipFileCreator

public AttachmentZipFileCreator(Issue issue)
Method Detail

toZipFile

public java.io.File toZipFile()
                       throws java.io.IOException
This will return a ZIP file that contains all the attachments of an issue. The file will be created in the temporary directory and end in .zip

you shoudl delete the file when you are done, otherwise, well this is JIRA not Bamboo!

Returns:
a zip file containing all the attachments of an issue
Throws:
java.io.IOException - if stuff goes wrong


Copyright © 2002-2010 Atlassian. All Rights Reserved.