net.dopan.fastdfs.client.core.UploadCallback Maven / Gradle / Ivy
package net.dopan.fastdfs.client.core;
import java.io.IOException;
import java.io.OutputStream;
/**
* 上传文件回调接口
*/
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
* @throws IOException 异常
*/
public int send(OutputStream out) throws IOException;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy