protected abstract static class SegmentDownloadAction.SegmentDownloadActionDeserializer extends DownloadAction.Deserializer
SegmentDownloadAction
Deserializer
s.type, version
Constructor and Description |
---|
SegmentDownloadActionDeserializer(String type,
int version) |
Modifier and Type | Method and Description |
---|---|
protected abstract DownloadAction |
createDownloadAction(Uri manifestUri,
boolean isRemoveAction,
byte[] data,
List<StreamKey> keys)
Returns a
DownloadAction . |
DownloadAction |
readFromStream(int version,
DataInputStream input)
Deserializes an action from the
input . |
protected StreamKey |
readKey(int version,
DataInputStream input)
Deserializes a key from the
input . |
public SegmentDownloadActionDeserializer(String type, int version)
public final DownloadAction readFromStream(int version, DataInputStream input) throws 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.IOException
DownloadAction.writeToStream(DataOutputStream)
protected StreamKey readKey(int version, DataInputStream input) throws IOException
input
.IOException
protected abstract DownloadAction createDownloadAction(Uri manifestUri, boolean isRemoveAction, byte[] data, List<StreamKey> keys)
DownloadAction
.