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 Type
  Method
  Description
  `boolean`
  `chunkReceived(IMAP imap)`
  Called when a multi-line partial response has been received.

- ## Method Details

  - ### chunkReceived

    boolean chunkReceived(IMAP imap)
    Called when a multi-line partial response has been received.
    Parameters:
      `imap` - the instance, get the response by calling `IMAP.getReplyString()` or `IMAP.getReplyStrings()`
    Returns:
      `true` if the reply buffer is to be cleared on return