public class IdleDataFetchProgressListener extends Object implements DataFetchProgressListener
IdleDataFetchProgressListener is a
DataFetchProgressListener with empty methods. It is intended a base
implementation for custom DataFetchProgressListener implementations,
that don't need to implement all methods.| Constructor and Description |
|---|
IdleDataFetchProgressListener() |
| 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. |
public void onStarted()
DataFetchProgressListenerInputStream
has started.onStarted in interface DataFetchProgressListenerpublic void onProgress(long bytesFetched)
DataFetchProgressListenerInputStream
has progressed.
The progress will only be reported if the DataFetcher is capable of
monitoring the progress.
onProgress in interface DataFetchProgressListenerbytesFetched - Total amount of bytes fetched so far.public void onSuccedded(Long bytesFetched)
DataFetchProgressListenerInputStream
has succeeded.onSuccedded in interface DataFetchProgressListenerbytesFetched - Total total amount of bytes fetched or null, if the
DataFetcher is not capable of monitoring the progress.public void onFailed(DataFetchException exception, Long bytesFetched)
DataFetchProgressListenerInputStream
has failed.onFailed in interface DataFetchProgressListenerexception - 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.public void onFinished()
DataFetchProgressListenerInputStream
has finished.
This method will be called after either
DataFetchProgressListener.onSuccedded(Long) or
DataFetchProgressListener.onFailed(DataFetchException, Long) has
been called.
onFinished in interface DataFetchProgressListenerCopyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.