Package org.apache.commons.net.imap
Interface IMAP.IMAPChunkListener
- Enclosing class:
- IMAP
public static interface IMAP.IMAPChunkListener
Implement this interface and register it via
IMAP.setChunkListener(IMAPChunkListener)
in order to get access to multi-line partial command responses.
Useful when processing large FETCH responses.-
Method Summary
Modifier and TypeMethodDescriptionboolean
chunkReceived
(IMAP imap) Called when a multi-line partial response has been received.
-
Method Details
-
chunkReceived
Called when a multi-line partial response has been received.- Parameters:
imap
- the instance, get the response by callingIMAP.getReplyString()
orIMAP.getReplyStrings()
- Returns:
true
if the reply buffer is to be cleared on return
-