org.csource.fastdfs
类 DownloadStream

java.lang.Object
  继承者 org.csource.fastdfs.DownloadStream
所有已实现的接口:
DownloadCallback

public class DownloadStream
extends Object
implements DownloadCallback

Download file by stream (download callback class)

版本:
Version 1.11
作者:
zhouzezhong & Happy Fish / YuQing

构造方法摘要
DownloadStream(OutputStream out)
           
 
方法摘要
 int recv(long fileSize, byte[] data, int bytes)
          recv file content callback function, may be called more than once when the file downloaded
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

DownloadStream

public DownloadStream(OutputStream out)
方法详细信息

recv

public int recv(long fileSize,
                byte[] data,
                int bytes)
recv file content callback function, may be called more than once when the file downloaded

指定者:
接口 DownloadCallback 中的 recv
参数:
fileSize - file size
data - data buff
bytes - data bytes
返回:
0 success, return none zero(errno) if fail


Copyright © 2017. All rights reserved.