C# Class Qiniu.Storage.Persistent.ResumeRecorder

分片上传进度记录器
Show file Open project: qiniu/csharp-sdk Class Usage Examples

Public Methods

Method Description
ResumeRecorder ( string dir ) : System

构建上传进度记录器

del ( string key ) : void

删除上传进度记录

get ( string key ) : byte[]

获取上传进度记录

set ( string key, byte data ) : void

写入或更新上传进度记录

Private Methods

Method Description
createDirIfNotExist ( ) : void

如果指定目录不存在,则创建

Method Details

ResumeRecorder() public method

构建上传进度记录器
public ResumeRecorder ( string dir ) : System
dir string 保存目录
return System

del() public method

删除上传进度记录
public del ( string key ) : void
key string 记录文件名
return void

get() public method

获取上传进度记录
public get ( string key ) : byte[]
key string 记录文件名
return byte[]

set() public method

写入或更新上传进度记录
public set ( string key, byte data ) : void
key string 记录文件名
data byte 上传进度数据
return void