protected abstract static class SegmentDownloadAction.SegmentDownloadActionDeserializer extends DownloadAction.Deserializer
SegmentDownloadAction
Deserializer
s.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.Deserializer
input
.readFromStream
in class DownloadAction.Deserializer
version
- The version of the serialized action.input
- The stream from which to read the action.java.io.IOException
DownloadAction.writeToStream(DataOutputStream)
protected StreamKey readKey(int version, java.io.DataInputStream input) throws java.io.IOException
input
.java.io.IOException
protected abstract DownloadAction createDownloadAction(android.net.Uri manifestUri, boolean isRemoveAction, byte[] data, java.util.List<StreamKey> keys)
DownloadAction
.