Class IMAPExportMbox.MboxListener
java.lang.Object
org.apache.commons.net.examples.mail.IMAPExportMbox.MboxListener
- All Implemented Interfaces:
IMAP.IMAPChunkListener
- Enclosing class:
IMAPExportMbox
private static final class IMAPExportMbox.MboxListener
extends Object
implements IMAP.IMAPChunkListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BufferedWriterprivate final booleanprivate final SimpleDateFormatprivate final SimpleDateFormat(package private) String(package private) longprivate final Stringprivate final booleanprivate final boolean(package private) AtomicInteger -
Constructor Summary
ConstructorsConstructorDescriptionMboxListener(BufferedWriter bufferedWriter, String lineSeparator, boolean printHash, boolean printMarker, boolean checkSequence) -
Method Summary
Modifier and TypeMethodDescriptionbooleanchunkReceived(IMAP imap) Called when a multi-line partial response has been received.voidclose()
-
Field Details
-
bufferedWriter
-
total
-
lastFetched
-
missingIds
-
lastSeq
volatile long lastSeq -
lineSeparator
-
DATE_FORMAT
-
IDPARSE
-
printHash
private final boolean printHash -
printMarker
private final boolean printMarker -
checkSequence
private final boolean checkSequence
-
-
Constructor Details
-
MboxListener
MboxListener(BufferedWriter bufferedWriter, String lineSeparator, boolean printHash, boolean printMarker, boolean checkSequence)
-
-
Method Details
-
chunkReceived
Description copied from interface:IMAP.IMAPChunkListenerCalled when a multi-line partial response has been received.- Specified by:
chunkReceivedin interfaceIMAP.IMAPChunkListener- Parameters:
imap- the instance, get the response by callingIMAP.getReplyString()orIMAP.getReplyStrings()- Returns:
trueif the reply buffer is to be cleared on return
-
close
- Throws:
IOException
-