@NotThreadSafe public class ByteArrayEntityHC4 extends AbstractHttpEntityHC4 implements java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
content
Deprecated.
(4.2)
|
chunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZE| Constructor and Description |
|---|
ByteArrayEntityHC4(byte[] b) |
ByteArrayEntityHC4(byte[] b,
ContentType contentType) |
ByteArrayEntityHC4(byte[] b,
int off,
int len) |
ByteArrayEntityHC4(byte[] b,
int off,
int len,
ContentType contentType) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
java.io.InputStream |
getContent() |
long |
getContentLength() |
boolean |
isRepeatable() |
boolean |
isStreaming()
Tells that this entity is not streaming.
|
void |
writeTo(java.io.OutputStream outstream) |
consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentTypepublic ByteArrayEntityHC4(byte[] b,
ContentType contentType)
public ByteArrayEntityHC4(byte[] b,
int off,
int len,
ContentType contentType)
public ByteArrayEntityHC4(byte[] b)
public ByteArrayEntityHC4(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.HttpEntityfalsepublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionCopyright © 1999-2015 The Apache Software Foundation. All rights reserved.