public abstract class FdfsResponse<T> extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected Class<T> |
genericType
返回值类型
|
protected ProtoHead |
head
报文头
|
| 构造器和说明 |
|---|
FdfsResponse()
构造函数
|
| 限定符和类型 | 方法和说明 |
|---|---|
T |
decode(ProtoHead head,
InputStream in,
Charset charset)
解析反馈结果,head已经被解析过
|
T |
decodeContent(InputStream in,
Charset charset)
解析反馈内容
|
protected long |
getContentLength()
获取报文长度
|
protected long getContentLength()
public T decode(ProtoHead head, InputStream in, Charset charset) throws IOException
head - in - charset - IOExceptionpublic T decodeContent(InputStream in, Charset charset) throws IOException
in - charset - IOExceptionCopyright © 2020. All rights reserved.