StreamDownloadTask.StreamProcessor

public interface StreamDownloadTask.StreamProcessor


A callback that is used to handle the stream download

Summary

Public methods

abstract void

doInBackground gets called on a background thread and should process the input stream to load data as desired.

Public methods

doInBackground

abstract void doInBackground(
    @NonNull StreamDownloadTask.TaskSnapshot state,
    @NonNull InputStream stream
)

doInBackground gets called on a background thread and should process the input stream to load data as desired. The stream should be closed prior to returning or in the handler onSuccess

Parameters
@NonNull StreamDownloadTask.TaskSnapshot state

is the current TaskSnapshot for this task

@NonNull InputStream stream

the InputStream for the downloaded bytes.

Throws
java.io.IOException java.io.IOException

may be thrown to cancel the operation.