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, writeTo
consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType, toString
public CloseableInputStreamEntity(InputStream input, long length, org.apache.http.entity.ContentType contentType)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException