public static class ChunkedInputStreamEntity.ReleasableInputStreamEntity extends org.apache.http.entity.AbstractHttpEntity implements Releasable
| 构造器和说明 |
|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 org.apache.http.HttpEntitypublic long getContentLength()
getContentLength 在接口中 org.apache.http.HttpEntitypublic InputStream getContent() throws IOException
getContent 在接口中 org.apache.http.HttpEntityIOExceptionpublic void writeTo(OutputStream outstream) throws IOException
writeTo 在接口中 org.apache.http.HttpEntityIOExceptionpublic boolean isStreaming()
isStreaming 在接口中 org.apache.http.HttpEntitypublic void close()
public void release()
release 在接口中 Releasablepublic boolean isCloseDisabled()
public void setCloseDisabled(boolean closeDisabled)
Copyright © 2020. All Rights Reserved.