AttachmentIndexManager
instead. Since v6.4.@Deprecated public class AttachmentZipKit extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
AttachmentZipKit.AttachmentZipEntries
Deprecated.
Use
AttachmentIndexManager instead. Since v6.4. |
static interface |
AttachmentZipKit.AttachmentZipEntry
Deprecated.
Use
AttachmentIndexManager instead. Since v6.4. |
static class |
AttachmentZipKit.FileCriteria
Deprecated.
Use
AttachmentIndexManager instead. Since v6.4. |
static class |
AttachmentZipKit.ZipEntryInputStream
Deprecated.
|
Constructor and Description |
---|
AttachmentZipKit()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
AttachmentZipKit.ZipEntryInputStream |
extractFile(File zipFile,
long entryIndex)
Deprecated.
Use
AttachmentIndexManager.getAttachmentContents(Attachment, com.atlassian.jira.issue.Issue, int) instead. Since v6.4. |
boolean |
isZip(File file)
Deprecated.
Use
AttachmentIndexManager.isExpandable(Attachment) instead. Since v6.4. |
AttachmentZipKit.AttachmentZipEntries |
listEntries(File zipFile,
int maxEntries,
AttachmentZipKit.FileCriteria criteria)
Deprecated.
Use
AttachmentIndexManager instead. Since v6.4. |
@Deprecated public boolean isZip(@Nullable File file)
AttachmentIndexManager.isExpandable(Attachment)
instead. Since v6.4.file
- the file in play.@Deprecated public AttachmentZipKit.ZipEntryInputStream extractFile(@Nullable File zipFile, long entryIndex) throws IOException
AttachmentIndexManager.getAttachmentContents(Attachment, com.atlassian.jira.issue.Issue, int)
instead. Since v6.4.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 playentryIndex
- the entryIndex of the entry to returnAttachmentZipKit.ZipEntryInputStream
that can be read from
for data and has extra ZipArchiveEntry
information.IOException
- if things go wrong during reading@Deprecated public AttachmentZipKit.AttachmentZipEntries listEntries(File zipFile, int maxEntries, AttachmentZipKit.FileCriteria criteria) throws IOException
AttachmentIndexManager
instead. Since v6.4.AttachmentZipKit.AttachmentZipEntry
s for a given zip filezipFile
- the ZIP file in playcriteria
- the criteria of which entries to returnmaxEntries
- the maximum number of entries to put in th list. If this is -negative then not maximum is
used.IOException
- if the file cant be read or is not a zip. file.Copyright © 2002-2015 Atlassian. All Rights Reserved.