public final class ProgressiveDownloadAction extends DownloadAction
DownloadAction.Deserializer
Modifier and Type | Field and Description |
---|---|
static DownloadAction.Deserializer |
DESERIALIZER |
data, isRemoveAction, type, uri, version
Constructor and Description |
---|
ProgressiveDownloadAction(android.net.Uri uri,
boolean isRemoveAction,
byte[] data,
java.lang.String customCacheKey)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ProgressiveDownloadAction |
createDownloadAction(android.net.Uri uri,
byte[] data,
java.lang.String customCacheKey)
Creates a progressive stream download action.
|
ProgressiveDownloader |
createDownloader(DownloaderConstructorHelper constructorHelper)
Creates a
Downloader with the given parameters. |
static ProgressiveDownloadAction |
createRemoveAction(android.net.Uri uri,
byte[] data,
java.lang.String customCacheKey)
Creates a progressive stream remove action.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
isSameMedia(DownloadAction other)
Returns whether this is an action for the same media as the
other . |
protected void |
writeToStream(java.io.DataOutputStream output)
Serializes itself into the
output . |
deserializeFromStream, getDefaultDeserializers, getKeys, serializeToStream, toByteArray
public static final DownloadAction.Deserializer DESERIALIZER
@Deprecated public ProgressiveDownloadAction(android.net.Uri uri, boolean isRemoveAction, @Nullable byte[] data, @Nullable java.lang.String customCacheKey)
createDownloadAction(Uri, byte[], String)
or createRemoveAction(Uri, byte[], String)
.uri
- Uri of the data to be downloaded.isRemoveAction
- Whether this is a remove action. If false, this is a download action.data
- Optional custom data for this action.customCacheKey
- A custom key that uniquely identifies the original stream. If not null it
is used for cache indexing.public static ProgressiveDownloadAction createDownloadAction(android.net.Uri uri, @Nullable byte[] data, @Nullable java.lang.String customCacheKey)
uri
- Uri of the data to be downloaded.data
- Optional custom data for this action.customCacheKey
- A custom key that uniquely identifies the original stream. If not null it
is used for cache indexing.public static ProgressiveDownloadAction createRemoveAction(android.net.Uri uri, @Nullable byte[] data, @Nullable java.lang.String customCacheKey)
uri
- Uri of the data to be removed.data
- Optional custom data for this action.customCacheKey
- A custom key that uniquely identifies the original stream. If not null it
is used for cache indexing.public ProgressiveDownloader createDownloader(DownloaderConstructorHelper constructorHelper)
DownloadAction
Downloader
with the given parameters.createDownloader
in class DownloadAction
protected void writeToStream(java.io.DataOutputStream output) throws java.io.IOException
DownloadAction
output
.writeToStream
in class DownloadAction
java.io.IOException
public boolean isSameMedia(DownloadAction other)
DownloadAction
other
.isSameMedia
in class DownloadAction
public boolean equals(@Nullable java.lang.Object o)
equals
in class DownloadAction
public int hashCode()
hashCode
in class DownloadAction