public class StreamSliceUpload extends SliceUpload
| 限定符和类型 | 类和说明 |
|---|---|
protected class |
StreamSliceUpload.ByteRef |
| 限定符和类型 | 字段和说明 |
|---|---|
protected InputStream |
is |
BLOCK_SIZE, contentLength, currentUploadLength, host, httpClient, key, lastUploadLength, mimeType, token, triedTimes| 构造器和说明 |
|---|
StreamSliceUpload(InputStream is,
String token,
String key,
String mimeType) |
StreamSliceUpload(InputStream is,
String token,
String key,
String mimeType,
long totalLength) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected UploadBlock |
buildBlockUpload(int blockIdx,
long start,
int len) |
protected UploadBlock |
buildNextBlockUpload() |
protected void |
clean() |
protected boolean |
hasNext() |
addSuccessLength, execute, getContentLength, getCurrentUploadLength, getLastUploadLength, mkCtx, mkfile, nextUploadBlock, sliceAndUploadprotected InputStream is
public StreamSliceUpload(InputStream is, String token, String key, String mimeType)
public StreamSliceUpload(InputStream is, String token, String key, String mimeType, long totalLength)
is - authorizer - key - mimeType - totalLength - 长度未知可传 -1;protected boolean hasNext()
hasNext 在类中 SliceUploadprotected UploadBlock buildNextBlockUpload() throws IOException
buildNextBlockUpload 在类中 SliceUploadIOExceptionprotected UploadBlock buildBlockUpload(int blockIdx, long start, int len) throws IOException
IOExceptionprotected void clean()
throws Exception
clean 在类中 SliceUploadExceptionCopyright © 2014. All Rights Reserved.