Package io.jmix.imap
Interface ImapAttachments
- All Known Implementing Classes:
- ImapAttachmentsImpl
public interface ImapAttachments
Provide operations to load IMAP message attachments
- 
Method SummaryModifier and TypeMethodDescriptionfetchAttachments(ImapMessage message) Retrieve and cache attachments for messagebyte[]loadFile(ImapMessageAttachment attachment) Load a file message attachment content into byte array.openStream(ImapMessageAttachment attachment) Return an input stream to load a message attachment content
- 
Method Details- 
fetchAttachmentsRetrieve and cache attachments for message- Parameters:
- message- reference object for IMAP message
- Returns:
- reference objects for message attachments
 
- 
openStreamReturn an input stream to load a message attachment content- Parameters:
- attachment- IMAP message attachment reference object
- Returns:
- input stream, must be closed after use
 
- 
loadFileLoad a file message attachment content into byte array.- Parameters:
- attachment- IMAP message attachment reference object
- Returns:
- attachment content
 
 
-