Closeable, AutoCloseablepublic class CurlResponse extends Object implements Closeable
| コンストラクタ | 説明 |
|---|---|
CurlResponse() |
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
void |
close() |
|
<T> T |
getContent(Function<CurlResponse,T> parser) |
|
InputStream |
getContentAsStream() |
|
String |
getContentAsString() |
|
Exception |
getContentException() |
|
String |
getEncoding() |
|
int |
getHttpStatusCode() |
|
void |
setContentException(Exception e) |
|
void |
setContentFile(Path tempFile) |
|
void |
setEncoding(String encoding) |
|
void |
setHttpStatusCode(int httpStatusCode) |
public void close()
throws IOException
close インタフェース内 AutoCloseableclose インタフェース内 CloseableIOExceptionpublic <T> T getContent(Function<CurlResponse,T> parser)
public String getContentAsString()
public InputStream getContentAsStream() throws IOException
IOExceptionpublic void setContentFile(Path tempFile)
public int getHttpStatusCode()
public void setHttpStatusCode(int httpStatusCode)
public String getEncoding()
public void setEncoding(String encoding)
public void setContentException(Exception e)
public Exception getContentException()
Copyright © 2011–2018 CodeLibs Project. All rights reserved.