public abstract class AbstractResponse extends Object implements Response
| Constructor and Description |
|---|
AbstractResponse() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
bytes()
得到字节数组
|
Response |
charset(Charset charset)
设置响应编码
|
Response |
charset(String charset)
设置响应编码
|
Cookie |
getCookie(String name) |
protected InputStream |
getGzipInputStream()
通过Gzip包装的流
|
Header |
getHeader(String name) |
protected abstract InputStream |
getSourceInputStream()
得到原始流
|
protected boolean |
isGzip()
判断流是否采用GZIP压缩
|
protected abstract Response |
self() |
InputStream |
stream()
得到流
|
String |
text()
得到文本内容
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCookies, getHeaders, getStatusLineprotected Charset charset
public byte[] bytes()
Responsepublic InputStream stream()
Responseprotected boolean isGzip()
protected InputStream getGzipInputStream() throws IOException
IOExceptionprotected abstract InputStream getSourceInputStream() throws IOException
IOExceptionprotected abstract Response self()
Copyright © 2006–2018 TinyGroup. All rights reserved.