com.jeesuite.filesystem.sdk.fdfs.codec.FileIdOperationEncoder Maven / Gradle / Ivy
package com.jeesuite.filesystem.sdk.fdfs.codec;
import com.jeesuite.filesystem.sdk.fdfs.FileId;
import com.jeesuite.filesystem.sdk.fdfs.exchange.Requestor;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufAllocator;
import io.netty.buffer.ByteBufUtil;
import java.util.Collections;
import java.util.List;
import static com.jeesuite.filesystem.sdk.fdfs.FastdfsConstants.*;
import static com.jeesuite.filesystem.sdk.fdfs.FastdfsUtils.writeFixLength;
/**
* @author siuming
*/
public abstract class FileIdOperationEncoder implements Requestor.Encoder {
private final FileId fileId;
/**
* @param fileId
*/
protected FileIdOperationEncoder(FileId fileId) {
this.fileId = fileId;
}
@Override
public List