content
Deprecated.
(4.2)
Closeable, AutoCloseable, HttpEntity, HttpAsyncContentProducer, ProducingNHttpEntityprivate final byte[]private final ByteBufferprotected final ByteBufferprotected final byte[]private final intprivate final intchunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZENByteArrayEntity(byte[] b) NByteArrayEntity(byte[] b,
int off,
int len) NByteArrayEntity(byte[] b,
int off,
int len,
ContentType contentType) NByteArrayEntity(byte[] b,
ContentType contentType) voidclose()voidfinish()close()longbooleanbooleanvoidproduceContent(ContentEncoder encoder,
IOControl ioControl) ContentEncoder.voidwriteTo(OutputStream outStream) consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconsumeContent, getContentEncoding, getContentType, isChunkedclose in interface AutoCloseableclose in interface Closeableclose()finish in interface ProducingNHttpEntityHttpAsyncContentProducerContentEncoder.
The IOControl interface can be used to suspend output event
notifications if the entity is temporarily unable to produce more content.
When all content is finished, the producer MUST call
ContentEncoder.complete(). Failure to do so may cause the entity
to be incorrectly delimited.
Please note that the ContentEncoder object is not thread-safe and
should only be used within the context of this method call.
The IOControl object can be shared and used on other thread
to resume output event notifications when more content is made available.
produceContent in interface HttpAsyncContentProducerproduceContent in interface ProducingNHttpEntityencoder - content encoder.ioControl - I/O control of the underlying connection.IOExceptionHttpEntitygetContentLength in interface HttpEntityLong.MAX_VALUE,
a negative number is returned.HttpAsyncContentProducerisRepeatable in interface HttpAsyncContentProducerisRepeatable in interface HttpEntityHttpEntitytrue. Self-contained entities should return
false. Wrapping entities should delegate this call
to the wrapped entity.isStreaming in interface HttpEntitytrue if the entity content is streamed,
false otherwiseHttpEntityRepeatable 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 HttpEntityHttpEntityIMPORTANT: Please note all entity implementations must ensure that all allocated resources are properly deallocated when this method returns.
writeTo in interface HttpEntityoutStream - the output stream to write entity content toIOException - if an I/O error occurs