com.luhuiguo.fastdfs.proto.storage.StorageModifyCommand Maven / Gradle / Ivy
The newest version!
package com.luhuiguo.fastdfs.proto.storage;
import java.io.InputStream;
import com.luhuiguo.fastdfs.proto.AbstractFdfsCommand;
import com.luhuiguo.fastdfs.proto.FdfsResponse;
import com.luhuiguo.fastdfs.proto.storage.internal.StorageModifyRequest;
/**
* 文件修改命令
*
* @author tobato
*
*/
public class StorageModifyCommand extends AbstractFdfsCommand {
/**
* 文件修改命令
*
* @param path
* @param inputStream
* @param fileSize
* @param fileOffset
*/
public StorageModifyCommand(String path, InputStream inputStream, long fileSize, long fileOffset) {
super();
this.request = new StorageModifyRequest(inputStream, fileSize, path, fileOffset);
// 输出响应
this.response = new FdfsResponse() {
// default response
};
}
}