public interface DataFetchProgressListener
| Modifier and Type | Method and Description |
|---|---|
void |
onFailed(DataFetchException exception,
Long bytesFetched)
Indicates that the process of fetching bytes from an
InputStream
has failed. |
void |
onFinished()
Indicates that the process of fetching bytes from an
InputStream
has finished. |
void |
onProgress(long bytesFetched)
Indicates that the process of fetching bytes from an
InputStream
has progressed. |
void |
onStarted()
Indicates that the process of fetching bytes from an
InputStream
has started. |
void |
onSuccedded(Long bytesFetched)
Indicates that the process of fetching bytes from an
InputStream
has succeeded. |
void onStarted()
InputStream
has started.void onProgress(long bytesFetched)
InputStream
has progressed.
The progress will only be reported if the DataFetcher is capable of
monitoring the progress.
bytesFetched - Total amount of bytes fetched so far.void onSuccedded(Long bytesFetched)
InputStream
has succeeded.bytesFetched - Total total amount of bytes fetched or null, if the
DataFetcher is not capable of monitoring the progress.void onFailed(DataFetchException exception, Long bytesFetched)
InputStream
has failed.exception - The DataFetchException that caused the process to fail.
This is the same DataFetchException that is thrown in the
failing method of DataFetcher that this
DataFetchProgressListener has been given to.bytesFetched - Total total amount of bytes fetched before the process failed
or null, if the DataFetcher is not capable of
monitoring the progress.void onFinished()
InputStream
has finished.
This method will be called after either
onSuccedded(Long) or
onFailed(DataFetchException, Long) has
been called.
Copyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.