public class StorageTruncateRequest extends FdfsRequest
使用限制:创建文件时候需要采用<<源追加>>模式,之后才能Truncate size使用也有限制
head, inputFile| 构造器和说明 |
|---|
StorageTruncateRequest(String path,
long fileSize)
文件Truncate命令
|
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
encodeParam(Charset charset)
打包参数
|
long |
getFileSize() |
String |
getPath() |
long |
getPathSize() |
void |
setFileSize(long fileSize) |
void |
setPath(String path) |
void |
setPathSize(long pathSize) |
String |
toString() |
getBodyLength, getHeadByte, getInputFilepublic StorageTruncateRequest(String path, long fileSize)
path - fileSize - 截取文件长度public byte[] encodeParam(Charset charset)
encodeParam 在类中 FdfsRequestpublic long getPathSize()
public void setPathSize(long pathSize)
public String getPath()
public void setPath(String path)
public void setFileSize(long fileSize)
public long getFileSize()
getFileSize 在类中 FdfsRequestCopyright © 2018. All rights reserved.