@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, setContentType
public 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.HttpEntity
public long getContentLength()
getContentLength
in interface org.apache.http.HttpEntity
public java.io.InputStream getContent()
getContent
in interface org.apache.http.HttpEntity
public void writeTo(java.io.OutputStream outstream) throws java.io.IOException
writeTo
in interface org.apache.http.HttpEntity
java.io.IOException
public boolean isStreaming()
isStreaming
in interface org.apache.http.HttpEntity
false
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
Copyright © 1999-2015 The Apache Software Foundation. All rights reserved.