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

构造方法摘要
UploadStream(InputStream inputStream, long fileSize)
          constructor
 
方法摘要
 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 uploading
fileSize - 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.