private static class IMAPExportMbox.MboxListener extends java.lang.Object implements IMAP.IMAPChunkListener
Modifier and Type | Field and Description |
---|---|
private java.io.BufferedWriter |
bw |
private boolean |
checkSequence |
private java.text.SimpleDateFormat |
DATE_FORMAT |
private java.lang.String |
eol |
private java.text.SimpleDateFormat |
IDPARSE |
(package private) java.lang.String |
lastFetched |
(package private) long |
lastSeq |
(package private) java.util.List<java.lang.String> |
missingIds |
private boolean |
printHash |
private boolean |
printMarker |
(package private) int |
total |
Constructor and Description |
---|
MboxListener(java.io.BufferedWriter bw,
java.lang.String eol,
boolean printHash,
boolean printMarker,
boolean checkSequence) |
Modifier and Type | Method and Description |
---|---|
boolean |
chunkReceived(IMAP imap)
Called when a multi-line partial response has been received.
|
void |
close() |
private final java.io.BufferedWriter bw
volatile int total
volatile java.lang.String lastFetched
volatile java.util.List<java.lang.String> missingIds
volatile long lastSeq
private final java.lang.String eol
private final java.text.SimpleDateFormat DATE_FORMAT
private final java.text.SimpleDateFormat IDPARSE
private final boolean printHash
private final boolean printMarker
private final boolean checkSequence
MboxListener(java.io.BufferedWriter bw, java.lang.String eol, boolean printHash, boolean printMarker, boolean checkSequence) throws java.io.IOException
java.io.IOException
public boolean chunkReceived(IMAP imap)
IMAP.IMAPChunkListener
chunkReceived
in interface IMAP.IMAPChunkListener
imap
- the instance, get the response
by calling IMAP.getReplyString()
or IMAP.getReplyStrings()
true
if the reply buffer is to be cleared on returnpublic void close() throws java.io.IOException
java.io.IOException