public class CloseableInputStreamEntity extends org.apache.http.entity.InputStreamEntity implements CloseableHttpEntity
CloseableHttpEntity based on an InputStream.| Constructor and Description |
|---|
CloseableInputStreamEntity(InputStream input,
long length,
org.apache.http.entity.ContentType contentType) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the provided input stream
|
getContent, getContentLength, isRepeatable, isStreaming, writeToconsumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType, toStringpublic CloseableInputStreamEntity(InputStream input, long length, org.apache.http.entity.ContentType contentType)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOException