content
Deprecated.
(4.2)
Cloneable
, HttpEntity
private final byte[]
protected final byte[]
private final int
private final int
chunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZE
ByteArrayEntity(byte[] b)
ByteArrayEntity(byte[] b,
int off,
int len)
ByteArrayEntity(byte[] b,
int off,
int len,
ContentType contentType)
ByteArrayEntity(byte[] b,
ContentType contentType)
clone()
long
boolean
boolean
void
writeTo(OutputStream outStream)
consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType, toString
HttpEntity
isRepeatable
in interface HttpEntity
HttpEntity
getContentLength
in interface HttpEntity
Long.MAX_VALUE
,
a negative number is returned.HttpEntity
Repeatable
entities are expected
to create a new instance of InputStream
for each invocation
of this method and therefore can be consumed multiple times.
Entities that are not repeatable
are expected
to return the same InputStream
instance and therefore
may not be consumed more than once.
IMPORTANT: Please note all entity implementations must ensure that
all allocated resources are properly deallocated after
the InputStream.close()
method is invoked.
getContent
in interface HttpEntity
HttpEntity
IMPORTANT: Please note all entity implementations must ensure that all allocated resources are properly deallocated when this method returns.
writeTo
in interface HttpEntity
outStream
- the output stream to write entity content toIOException
- if an I/O error occursisStreaming
in interface HttpEntity
false
clone
in class Object
CloneNotSupportedException