2014-12-07 11:24:05 +08:00
|
|
|
/**
|
2017-05-19 09:56:24 +08:00
|
|
|
* Copyright (C) 2008 Happy Fish / YuQing
|
|
|
|
* <p>
|
|
|
|
* FastDFS Java Client may be copied only under the terms of the GNU Lesser
|
|
|
|
* General Public License (LGPL).
|
|
|
|
* Please visit the FastDFS Home Page http://www.csource.org/ for more detail.
|
|
|
|
*/
|
2014-12-07 11:24:05 +08:00
|
|
|
|
|
|
|
package org.csource.fastdfs;
|
|
|
|
|
2017-05-19 09:56:24 +08:00
|
|
|
import java.io.IOException;
|
|
|
|
import java.io.OutputStream;
|
2014-12-07 11:24:05 +08:00
|
|
|
|
|
|
|
/**
|
2017-05-19 09:56:24 +08:00
|
|
|
* upload file callback interface
|
|
|
|
*
|
|
|
|
* @author Happy Fish / YuQing
|
|
|
|
* @version Version 1.0
|
|
|
|
*/
|
|
|
|
public interface UploadCallback {
|
|
|
|
/**
|
|
|
|
* send file content callback function, be called only once when the file uploaded
|
|
|
|
*
|
|
|
|
* @param out output stream for writing file content
|
|
|
|
* @return 0 success, return none zero(errno) if fail
|
|
|
|
*/
|
|
|
|
public int send(OutputStream out) throws IOException;
|
2014-12-07 11:24:05 +08:00
|
|
|
}
|