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 BufferedWriter
private final boolean
private final SimpleDateFormat
private final String
private final SimpleDateFormat
(package private) String
(package private) long
private final boolean
private final boolean
(package private) int
-
Constructor Summary
ConstructorsConstructorDescriptionMboxListener
(BufferedWriter bw, String eol, 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
-
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.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
-