Class IMAPExportMbox.MboxListener
java.lang.Object
org.apache.commons.net.examples.mail.IMAPExportMbox.MboxListener
- All Implemented Interfaces:
IMAP.IMAPChunkListener
- Enclosing class:
IMAPExportMbox
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BufferedWriter
private final boolean
private final SimpleDateFormat
private final SimpleDateFormat
(package private) String
(package private) long
private final String
private final boolean
private final boolean
(package private) AtomicInteger
-
Constructor Summary
ConstructorsConstructorDescriptionMboxListener
(BufferedWriter bufferedWriter, String lineSeparator, boolean printHash, boolean printMarker, boolean checkSequence) -
Method Summary
Modifier and TypeMethodDescriptionboolean
chunkReceived
(IMAP imap) Called when a multi-line partial response has been received.void
close()
-
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.IMAPChunkListener
Called when a multi-line partial response has been received.- Specified by:
chunkReceived
in interfaceIMAP.IMAPChunkListener
- Parameters:
imap
- the instance, get the response by callingIMAP.getReplyString()
orIMAP.getReplyStrings()
- Returns:
true
if the reply buffer is to be cleared on return
-
close
- Throws:
IOException
-