org.csource.fastdfs
类 StorageClient.UploadBuff
java.lang.Object
org.csource.fastdfs.StorageClient.UploadBuff
- 所有已实现的接口:
- UploadCallback
- 包容类:
- StorageClient
public static class StorageClient.UploadBuff
- extends Object
- implements UploadCallback
Upload file by file buff
- 版本:
- Version 1.12
- 作者:
- 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 |
StorageClient.UploadBuff
public StorageClient.UploadBuff(byte[] fileBuff,
int offset,
int length)
- constructor
- 参数:
fileBuff
- the file buff for uploading
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.