com.github.tobato.fastdfs.proto.storage.StorageAppendFileCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fastdfs-client Show documentation
Show all versions of fastdfs-client Show documentation
基于yuqih发布的代码与fastdfs-client 官方1.26版本的重构
package com.github.tobato.fastdfs.proto.storage;
import java.io.InputStream;
import com.github.tobato.fastdfs.proto.AbstractFdfsCommand;
import com.github.tobato.fastdfs.proto.FdfsResponse;
import com.github.tobato.fastdfs.proto.storage.internal.StorageAppendFileRequest;
/**
* 添加文件命令
*
* @author tobato
*
*/
public class StorageAppendFileCommand extends AbstractFdfsCommand {
public StorageAppendFileCommand(InputStream inputStream, long fileSize, String path) {
this.request = new StorageAppendFileRequest(inputStream, fileSize, path);
// 输出响应
this.response = new FdfsResponse() {
// default response
};
}
}