public class StreamChunkSet
extends java.lang.Object
流块集合
构造器和说明 |
---|
StreamChunkSet(java.lang.String id) |
StreamChunkSet(java.lang.String id, java.util.List<StreamChunk> chunks) |
限定符和类型 | 方法和说明 |
---|---|
void |
addChunk(StreamChunk streamChunk)
添加块
|
void |
addChunks(java.util.List<StreamChunk> chunks) |
boolean |
exist(int sequence)
是否存在
|
java.util.List<StreamChunk> |
getChunks() |
java.lang.String |
getId() |
long |
getTotalSize()
获取总大小
|
public StreamChunkSet(java.lang.String id)
public StreamChunkSet(java.lang.String id, java.util.List<StreamChunk> chunks)
public java.lang.String getId()
public void addChunk(StreamChunk streamChunk)
添加块
streamChunk
-public void addChunks(java.util.List<StreamChunk> chunks)
public java.util.List<StreamChunk> getChunks()
public long getTotalSize()
获取总大小
public boolean exist(int sequence)
是否存在
sequence
-