public static class ChunkedInputStreamEntity.ReleasableInputStreamEntity extends org.apache.http.entity.AbstractHttpEntity implements Releasable
| Constructor and Description |
|---|
ChunkedInputStreamEntity.ReleasableInputStreamEntity(InputStream instream) |
ChunkedInputStreamEntity.ReleasableInputStreamEntity(InputStream instream,
org.apache.http.entity.ContentType contentType) |
ChunkedInputStreamEntity.ReleasableInputStreamEntity(InputStream instream,
long length) |
ChunkedInputStreamEntity.ReleasableInputStreamEntity(InputStream instream,
long length,
org.apache.http.entity.ContentType contentType) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InputStream |
getContent() |
long |
getContentLength() |
boolean |
isCloseDisabled() |
boolean |
isRepeatable() |
boolean |
isStreaming() |
void |
release() |
void |
setCloseDisabled(boolean closeDisabled) |
void |
writeTo(OutputStream outstream) |
public ChunkedInputStreamEntity.ReleasableInputStreamEntity(InputStream instream)
public ChunkedInputStreamEntity.ReleasableInputStreamEntity(InputStream instream, long length)
public ChunkedInputStreamEntity.ReleasableInputStreamEntity(InputStream instream, org.apache.http.entity.ContentType contentType)
public ChunkedInputStreamEntity.ReleasableInputStreamEntity(InputStream instream, long length, org.apache.http.entity.ContentType contentType)
public boolean isRepeatable()
isRepeatable in interface org.apache.http.HttpEntitypublic long getContentLength()
getContentLength in interface org.apache.http.HttpEntitypublic InputStream getContent() throws IOException
getContent in interface org.apache.http.HttpEntityIOExceptionpublic void writeTo(OutputStream outstream) throws IOException
writeTo in interface org.apache.http.HttpEntityIOExceptionpublic boolean isStreaming()
isStreaming in interface org.apache.http.HttpEntitypublic void close()
public void release()
release in interface Releasablepublic boolean isCloseDisabled()
public void setCloseDisabled(boolean closeDisabled)
Copyright © 2021. All Rights Reserved.