protected abstract static class SegmentDownloadAction.SegmentDownloadActionDeserializer extends DownloadAction.Deserializer
SegmentDownloadAction Deserializers.type, version| Constructor and Description |
|---|
SegmentDownloadActionDeserializer(java.lang.String type,
int version) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract DownloadAction |
createDownloadAction(android.net.Uri manifestUri,
boolean isRemoveAction,
byte[] data,
java.util.List<StreamKey> keys)
Returns a
DownloadAction. |
DownloadAction |
readFromStream(int version,
java.io.DataInputStream input)
Deserializes an action from the
input. |
protected StreamKey |
readKey(int version,
java.io.DataInputStream input)
Deserializes a key from the
input. |
public SegmentDownloadActionDeserializer(java.lang.String type,
int version)
public final DownloadAction readFromStream(int version, java.io.DataInputStream input) throws java.io.IOException
DownloadAction.Deserializerinput.readFromStream in class DownloadAction.Deserializerversion - The version of the serialized action.input - The stream from which to read the action.java.io.IOExceptionDownloadAction.writeToStream(DataOutputStream)protected StreamKey readKey(int version, java.io.DataInputStream input) throws java.io.IOException
input.java.io.IOExceptionprotected abstract DownloadAction createDownloadAction(android.net.Uri manifestUri, boolean isRemoveAction, byte[] data, java.util.List<StreamKey> keys)
DownloadAction.