Interface AttachmentProcessor

All Known Implementing Classes:
ZipAttachmentProcessor

@ExperimentalApi public interface AttachmentProcessor
Provides ability to process archive files.
Since:
v6.3
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Maximum number of entries that should be returned by processAttachment method.
  • Method Summary

    Modifier and Type
    Method
    Description
    Extracts attachment archive file and returns its contents (only files, no directories).
  • Field Details

    • MAX_ENTRIES

      static final int MAX_ENTRIES
      Maximum number of entries that should be returned by processAttachment method.
      See Also:
  • Method Details

    • processAttachment

      List<AttachmentArchiveEntry> processAttachment(@Nonnull 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.