Interface AttachmentProcessor
- All Known Implementing Classes:
ZipAttachmentProcessor
@ExperimentalApi
public interface AttachmentProcessor
Provides ability to process archive files.
- Since:
- v6.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Maximum number of entries that should be returned by processAttachment method. -
Method Summary
Modifier and TypeMethodDescriptionprocessAttachment
(File file) Extracts attachment archive file and returns its contents (only files, no directories).
-
Field Details
-
MAX_ENTRIES
static final int MAX_ENTRIESMaximum number of entries that should be returned by processAttachment method.- See Also:
-
-
Method Details
-
processAttachment
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.
-