Interface MailboxReader
- All Known Implementing Classes:
MailboxDirectoryReader
,MailboxFolderReader
,NestedMailboxFolderReader
public interface MailboxReader
Iterates through a set of
Message
s passing them to a provided MailboxReaderHandler
.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Context that may be used by theMailboxReaderHandler
to communicate to theMailboxReader
and to store information while iterating. -
Method Summary
Modifier and TypeMethodDescription<T> T
readMessages
(MailboxReaderHandler<T> handler) <T> T
readMessages
(jakarta.mail.search.SearchTerm searchTerm, MailboxReaderHandler<T> handler)
-
Method Details
-
readMessages
- Throws:
MailException
-
readMessages
<T> T readMessages(jakarta.mail.search.SearchTerm searchTerm, MailboxReaderHandler<T> handler) throws MailException - Throws:
MailException
-