com.atlassian.jira.issue.attachment
Class AttachmentZipFileCreator
java.lang.Object
com.atlassian.jira.issue.attachment.AttachmentZipFileCreator
public class AttachmentZipFileCreator
- extends Object
This class can create temporary zip files containing all the attachments on an issue
- Since:
- v4.1
Method Summary |
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 |
AttachmentZipFileCreator
public AttachmentZipFileCreator(Issue issue)
toZipFile
public File toZipFile()
throws 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:
IOException
- if stuff goes wrong
Copyright © 2002-2012 Atlassian. All Rights Reserved.