org.csource.fastdfs
Interface UploadCallback

All Known Implementing Classes:
StorageClient.UploadBuff, UploadStream

public interface UploadCallback

upload file callback interface

Version:
Version 1.0
Author:
Happy Fish / YuQing

Method Summary
 int send(java.io.OutputStream out)
          send file content callback function, be called only once when the file uploaded
 

Method Detail

send

int send(java.io.OutputStream out)
         throws java.io.IOException
send file content callback function, be called only once when the file uploaded

Parameters:
out - output stream for writing file content
Returns:
0 success, return none zero(errno) if fail
Throws:
java.io.IOException