class InternalByteArrayEntity
extends org.apache.http.entity.AbstractHttpEntity
implements java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
b |
private int |
len |
private int |
off |
| Constructor and Description |
|---|
InternalByteArrayEntity(byte[] b) |
InternalByteArrayEntity(byte[] b,
org.apache.http.entity.ContentType contentType) |
InternalByteArrayEntity(byte[] b,
int off,
int len) |
InternalByteArrayEntity(byte[] b,
int off,
int len,
org.apache.http.entity.ContentType contentType) |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getContent() |
long |
getContentLength() |
boolean |
isRepeatable() |
boolean |
isStreaming() |
void |
writeTo(java.io.OutputStream outstream) |
public InternalByteArrayEntity(byte[] b,
org.apache.http.entity.ContentType contentType)
public InternalByteArrayEntity(byte[] b,
int off,
int len,
org.apache.http.entity.ContentType contentType)
public InternalByteArrayEntity(byte[] b)
public InternalByteArrayEntity(byte[] b,
int off,
int len)
public boolean isRepeatable()
isRepeatable in interface org.apache.http.HttpEntitypublic long getContentLength()
getContentLength in interface org.apache.http.HttpEntitypublic java.io.InputStream getContent()
getContent in interface org.apache.http.HttpEntitypublic void writeTo(java.io.OutputStream outstream)
throws java.io.IOException
writeTo in interface org.apache.http.HttpEntityjava.io.IOExceptionpublic boolean isStreaming()
isStreaming in interface org.apache.http.HttpEntity