public class InputStreamEntity
extends org.apache.http.entity.AbstractHttpEntity
| Constructor and Description |
|---|
InputStreamEntity(IClosure<InputStream,IOException> contentClosure,
long length,
org.apache.http.entity.ContentType contentType) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getContent() |
long |
getContentLength() |
boolean |
isRepeatable() |
boolean |
isStreaming() |
void |
writeTo(OutputStream outstream) |
public InputStreamEntity(IClosure<InputStream,IOException> contentClosure, long length, org.apache.http.entity.ContentType contentType)
public boolean isRepeatable()
public long getContentLength()
-1 if unknownpublic InputStream getContent() throws IOException
IOExceptionpublic void writeTo(OutputStream outstream) throws IOException
IOExceptionpublic boolean isStreaming()
Copyright © 2007–2019 Andreas W. Bartels. All rights reserved.