public class

ZipAttachmentProcessor

extends Object
implements AttachmentProcessor
java.lang.Object
   ↳ com.atlassian.jira.plugin.attachment.ZipAttachmentProcessor

Class Overview

Extracts a ZIP archive.

Summary

[Expand]
Inherited Constants
From interface com.atlassian.jira.plugin.attachment.AttachmentProcessor
Public Constructors
ZipAttachmentProcessor()
Public Methods
List<AttachmentArchiveEntry> processAttachment(File file)
Extracts attachment archive file and returns its contents (only files, no directories).
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.plugin.attachment.AttachmentProcessor

Public Constructors

public ZipAttachmentProcessor ()

Public Methods

public List<AttachmentArchiveEntry> processAttachment (File file)

Extracts attachment archive file and returns its contents (only files, no directories). Note that the argument has to be File not an InputStream in order to fully list archive file entries.

Parameters
file attachment.
Returns
  • List of attachment entries trimmed to MAX_ENTRIES elements.