public class XResponse extends Object implements XHttpExecutor.Response
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
CFG_RSP_CHARSET |
static String |
CFG_RSP_CHARSET_DEFAULT |
| 构造器和说明 |
|---|
XResponse(HttpURLConnection connection,
InputStream stream) |
public XResponse(HttpURLConnection connection, InputStream stream)
public InputStream stream()
stream 在接口中 XHttpExecutor.Responsepublic String string()
XHttpExecutor.Responsestring 在接口中 XHttpExecutor.Responsepublic final String string(String charset)
string 在接口中 XHttpExecutor.Responsecharset - 字符串编码public final File file(String path)
file 在接口中 XHttpExecutor.Responsepath - 文件存储的路径public void close()
throws Exception
close 在接口中 AutoCloseableException - 在关闭该HTTP响应时可能会出现异常Copyright © 2019. All rights reserved.