public interface SinglePartMIMEReaderCallback
MultiPartMIMEReader.SinglePartMIMEReader to
asynchronously drive through the reading of a single part.
Most implementations of this should pass along a reference to the MultiPartMIMEReader.SinglePartMIMEReader
during construction. This way when they are invoked on onPartDataAvailable(com.linkedin.data.ByteString),
they can then turn around and call MultiPartMIMEReader.SinglePartMIMEReader.requestPartData().| Modifier and Type | Method and Description |
|---|---|
void |
onDrainComplete()
Invoked when the current part is finished being drained.
|
void |
onFinished()
Invoked when the current part is finished being read.
|
void |
onPartDataAvailable(com.linkedin.data.ByteString partData)
Invoked when data is available to be read on the current part.
|
void |
onStreamError(java.lang.Throwable throwable)
Invoked when there was an error reading from the multipart envelope.
|
void onPartDataAvailable(com.linkedin.data.ByteString partData)
partData - the ByteString representing the current window of part data.void onFinished()
void onDrainComplete()
void onStreamError(java.lang.Throwable throwable)
throwable - the Throwable that caused this to happen.