Package examples.mail
Class IMAPExportMbox.MboxListener
- java.lang.Object
-
- examples.mail.IMAPExportMbox.MboxListener
-
- All Implemented Interfaces:
IMAP.IMAPChunkListener
- Enclosing class:
- IMAPExportMbox
private static class IMAPExportMbox.MboxListener extends java.lang.Object implements IMAP.IMAPChunkListener
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.BufferedWriterbwprivate booleancheckSequenceprivate java.text.SimpleDateFormatDATE_FORMATprivate java.lang.Stringeolprivate java.text.SimpleDateFormatIDPARSE(package private) java.lang.StringlastFetched(package private) longlastSeq(package private) java.util.List<java.lang.String>missingIdsprivate booleanprintHashprivate booleanprintMarker(package private) inttotal
-
Constructor Summary
Constructors Constructor Description MboxListener(java.io.BufferedWriter bw, java.lang.String eol, boolean printHash, boolean printMarker, boolean checkSequence)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanchunkReceived(IMAP imap)Called when a multi-line partial response has been received.voidclose()
-
-
-
Field Detail
-
bw
private final java.io.BufferedWriter bw
-
total
volatile int total
-
lastFetched
volatile java.lang.String lastFetched
-
missingIds
volatile java.util.List<java.lang.String> missingIds
-
lastSeq
volatile long lastSeq
-
eol
private final java.lang.String eol
-
DATE_FORMAT
private final java.text.SimpleDateFormat DATE_FORMAT
-
IDPARSE
private final java.text.SimpleDateFormat IDPARSE
-
printHash
private final boolean printHash
-
printMarker
private final boolean printMarker
-
checkSequence
private final boolean checkSequence
-
-
Method Detail
-
chunkReceived
public boolean chunkReceived(IMAP imap)
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
public void close() throws java.io.IOException- Throws:
java.io.IOException
-
-