java.lang.Object | |
↳ | com.atlassian.jira.issue.attachment.AttachmentZipKit |
This class is deprecated.
Use AttachmentIndexManager
instead. Since v6.4.
This class will help when working with zip files
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AttachmentZipKit.AttachmentZipEntries |
This interface is deprecated.
Use AttachmentIndexManager instead. Since v6.4.
|
||||||||||
AttachmentZipKit.AttachmentZipEntry |
This interface is deprecated.
Use AttachmentIndexManager instead. Since v6.4.
|
||||||||||
AttachmentZipKit.FileCriteria |
This enum is deprecated.
Use AttachmentIndexManager instead. Since v6.4.
|
||||||||||
AttachmentZipKit.ZipEntryInputStream |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
Use
getAttachmentContents(Attachment, com.atlassian.jira.issue.Issue, int) instead. Since v6.4.
| |||||||||||
This method is deprecated.
Use
isExpandable(Attachment) instead. Since v6.4.
| |||||||||||
This method is deprecated.
Use
AttachmentIndexManager instead. Since v6.4.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
This method is deprecated.
Use getAttachmentContents(Attachment, com.atlassian.jira.issue.Issue, int)
instead. Since v6.4.
This will extract an java.io.OutputStream of the contents of the file at entryIndex within the zip file. If no file can be found be at that entryIndex or the entry is a directory then null will be returned.
zipFile | the zip file in play |
---|---|
entryIndex | the entryIndex of the entry to return |
AttachmentZipKit.ZipEntryInputStream
that can be read from
for data and has extra org.apache.commons.compress.archivers.zip.ZipArchiveEntry information.IOException | if things go wrong during reading |
---|
This method is deprecated.
Use isExpandable(Attachment)
instead. Since v6.4.
This will return true if the file is in fact a valid zip file.
file | the file in play. |
---|
This method is deprecated.
Use AttachmentIndexManager
instead. Since v6.4.
This will return a list of AttachmentZipKit.AttachmentZipEntry
s for a given zip file
zipFile | the ZIP file in play |
---|---|
maxEntries | the maximum number of entries to put in th list. If this is -negative then not maximum is used. |
criteria | the criteria of which entries to return |
IOException | if the file cant be read or is not a zip. file. |
---|