public interface MultiPartMIMEReaderCallback
MultiPartMIMEReader to asynchronously
drive through the reading of a multipart mime envelope.| Modifier and Type | Method and Description |
|---|---|
void |
onDrainComplete()
Invoked as a result of calling
MultiPartMIMEReader.drainAllParts(). |
void |
onFinished()
Invoked when this reader is finished and the multipart mime envelope has been completely read.
|
void |
onNewPart(MultiPartMIMEReader.SinglePartMIMEReader singlePartMIMEReader)
Invoked (at some time in the future) upon a registration with a
MultiPartMIMEReader. |
void |
onStreamError(java.lang.Throwable throwable)
Invoked when there was an error reading from the multipart envelope.
|
void onNewPart(MultiPartMIMEReader.SinglePartMIMEReader singlePartMIMEReader)
MultiPartMIMEReader.
Also invoked when previous parts are finished and new parts are available.singlePartMIMEReader - the MultiPartMIMEReader.SinglePartMIMEReader
which can be used to walk through this part.void onFinished()
void onDrainComplete()
MultiPartMIMEReader.drainAllParts(). This will be invoked
at some time in the future when all the parts from this multipart mime envelope are completely drained.void onStreamError(java.lang.Throwable throwable)
throwable - the Throwable that caused this to happen.