public abstract class SegmentDownloadAction extends DownloadAction
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SegmentDownloadAction.SegmentDownloadActionDeserializer
Base class for
SegmentDownloadAction Deserializers. |
DownloadAction.Deserializer| Modifier and Type | Field and Description |
|---|---|
java.util.List<StreamKey> |
keys |
data, isRemoveAction, type, uri, version| Modifier | Constructor and Description |
|---|---|
protected |
SegmentDownloadAction(java.lang.String type,
int version,
android.net.Uri uri,
boolean isRemoveAction,
byte[] data,
java.util.List<StreamKey> keys) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.util.List<StreamKey> |
getKeys()
Returns keys of tracks to be downloaded.
|
int |
hashCode() |
void |
writeToStream(java.io.DataOutputStream output)
Serializes itself into the
output. |
createDownloader, deserializeFromStream, getDefaultDeserializers, isSameMedia, serializeToStream, toByteArraypublic final java.util.List<StreamKey> keys
protected SegmentDownloadAction(java.lang.String type,
int version,
android.net.Uri uri,
boolean isRemoveAction,
@Nullable
byte[] data,
java.util.List<StreamKey> keys)
type - The type of the action.version - The action version.uri - The URI of the media being downloaded.isRemoveAction - Whether the data will be removed. If false it will be downloaded.data - Optional custom data for this action. If null an empty array will be used.keys - Keys of tracks to be downloaded. If empty, all tracks will be downloaded. If removeAction is true, keys must be empty.public java.util.List<StreamKey> getKeys()
DownloadActiongetKeys in class DownloadActionpublic final void writeToStream(java.io.DataOutputStream output)
throws java.io.IOException
DownloadActionoutput.writeToStream in class DownloadActionjava.io.IOExceptionpublic boolean equals(@Nullable
java.lang.Object o)
equals in class DownloadActionpublic int hashCode()
hashCode in class DownloadAction