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.HttpEntity
public long getContentLength()
getContentLength
in interface org.apache.http.HttpEntity
public InputStream getContent() throws IOException
getContent
in interface org.apache.http.HttpEntity
IOException
public void writeTo(OutputStream outstream) throws IOException
writeTo
in interface org.apache.http.HttpEntity
IOException
public boolean isStreaming()
isStreaming
in interface org.apache.http.HttpEntity
public void close()
public void release()
release
in interface Releasable
public boolean isCloseDisabled()
public void setCloseDisabled(boolean closeDisabled)
Copyright © 2021. All Rights Reserved.