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
方法摘要 |
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 sizedata
- data buffbytes
- data bytes
- 返回:
- 0 success, return none zero(errno) if fail
Copyright © 2017. All rights reserved.