Package examples.mail
Class IMAPExportMbox.MboxListener
java.lang.Object
examples.mail.IMAPExportMbox.MboxListener
- All Implemented Interfaces:
IMAP.IMAPChunkListener
- Enclosing class:
- IMAPExportMbox
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BufferedWriterprivate final booleanprivate final SimpleDateFormatprivate final Stringprivate final SimpleDateFormat(package private) String(package private) longprivate final booleanprivate final boolean(package private) int -
Constructor Summary
ConstructorsConstructorDescriptionMboxListener(BufferedWriter bw, String eol, 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
-
bw
-
total
volatile int total -
lastFetched
-
missingIds
-
lastSeq
volatile long lastSeq -
eol
-
DATE_FORMAT
-
IDPARSE
-
printHash
private final boolean printHash -
printMarker
private final boolean printMarker -
checkSequence
private final boolean checkSequence
-
-
Constructor Details
-
MboxListener
MboxListener(BufferedWriter bw, String eol, boolean printHash, boolean printMarker, boolean checkSequence) throws IOException - Throws:
IOException
-
-
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
-