Class IMAPExportMbox.MboxListener
- java.lang.Object
-
- org.apache.commons.net.examples.mail.IMAPExportMbox.MboxListener
-
- All Implemented Interfaces:
IMAP.IMAPChunkListener
- Enclosing class:
- IMAPExportMbox
private static final class IMAPExportMbox.MboxListener extends java.lang.Object implements IMAP.IMAPChunkListener
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.BufferedWriter
bufferedWriter
private boolean
checkSequence
private java.text.SimpleDateFormat
DATE_FORMAT
private java.text.SimpleDateFormat
IDPARSE
(package private) java.lang.String
lastFetched
(package private) long
lastSeq
private java.lang.String
lineSeparator
(package private) java.util.List<java.lang.String>
missingIds
private boolean
printHash
private boolean
printMarker
(package private) java.util.concurrent.atomic.AtomicInteger
total
-
Constructor Summary
Constructors Constructor Description MboxListener(java.io.BufferedWriter bufferedWriter, java.lang.String lineSeparator, boolean printHash, boolean printMarker, boolean checkSequence)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
chunkReceived(IMAP imap)
Called when a multi-line partial response has been received.void
close()
-
-
-
Field Detail
-
bufferedWriter
private final java.io.BufferedWriter bufferedWriter
-
total
volatile java.util.concurrent.atomic.AtomicInteger total
-
lastFetched
volatile java.lang.String lastFetched
-
missingIds
volatile java.util.List<java.lang.String> missingIds
-
lastSeq
volatile long lastSeq
-
lineSeparator
private final java.lang.String lineSeparator
-
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.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
public void close() throws java.io.IOException
- Throws:
java.io.IOException
-
-