IMAP.IMAPChunkListener (Apache Commons Net 3.4 API)

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

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `chunkReceived(IMAP imap)` Called when a multi-line partial response has been received.

- - ### Method Detail

    - #### 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

Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.