public class TemporaryBufferEntity
extends org.apache.http.entity.AbstractHttpEntity
HttpEntity which takes it's content from a TemporaryBuffer| Constructor and Description |
|---|
TemporaryBufferEntity(TemporaryBuffer buffer)
Construct a new
HttpEntity which will contain the content stored
in the specified buffer |
| Modifier and Type | Method and Description |
|---|---|
TemporaryBuffer |
getBuffer() |
InputStream |
getContent() |
long |
getContentLength() |
boolean |
isRepeatable() |
boolean |
isStreaming() |
void |
setContentLength(int contentLength) |
void |
writeTo(OutputStream outstream) |
public TemporaryBufferEntity(TemporaryBuffer buffer)
HttpEntity which will contain the content stored
in the specified bufferbuffer - public TemporaryBuffer getBuffer()
public boolean isRepeatable()
public long getContentLength()
public InputStream getContent() throws IOException, IllegalStateException
IOExceptionIllegalStateExceptionpublic void writeTo(OutputStream outstream) throws IOException
IOExceptionpublic boolean isStreaming()
public void setContentLength(int contentLength)
contentLength - Copyright © 2015 Eclipse JGit Project. All rights reserved.