Class FdfsResponse<T>
java.lang.Object
com.github.tobato.fastdfs.domain.proto.FdfsResponse<T>
- Type Parameters:
T- 类型泛型
- Direct Known Subclasses:
StorageDownloadResponse,StorageGetMetadataResponse,TrackerListGroupsResponse,TrackerListStoragesResponse
Fdfs交易应答基类
- Author:
- tobato
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode(ProtoHead head, InputStream in, Charset charset) 解析反馈结果,head已经被解析过decodeContent(InputStream in, Charset charset) 解析反馈内容protected long获取报文长度
-
Field Details
-
genericType
返回值类型 -
head
报文头
-
-
Constructor Details
-
FdfsResponse
public FdfsResponse()构造函数
-
-
Method Details
-
getContentLength
protected long getContentLength()获取报文长度 -
decode
解析反馈结果,head已经被解析过- Parameters:
head- 协议头in- 输入charset- 字符集- Returns:
- 内容
- Throws:
IOException- 异常
-
decodeContent
解析反馈内容- Parameters:
in- 输入charset- 字符集- Returns:
- 内容
- Throws:
IOException- 异常
-