org.csource.fastdfs
类 UploadStream
java.lang.Object
org.csource.fastdfs.UploadStream
- 所有已实现的接口:
- UploadCallback
public class UploadStream
- extends Object
- implements UploadCallback
Upload file by stream
- 版本:
- Version 1.11
- 作者:
- zhouzezhong & Happy Fish / YuQing
方法摘要 |
int |
send(OutputStream out)
send file content callback function, be called only once when the file uploaded |
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UploadStream
public UploadStream(InputStream inputStream,
long fileSize)
- constructor
- 参数:
inputStream
- input stream for uploadingfileSize
- size of uploaded file
send
public int send(OutputStream out)
throws IOException
- send file content callback function, be called only once when the file uploaded
- 指定者:
- 接口
UploadCallback
中的 send
- 参数:
out
- output stream for writing file content
- 返回:
- 0 success, return none zero(errno) if fail
- 抛出:
IOException
Copyright © 2017. All rights reserved.