content
Deprecated.
(4.2)
Closeable, AutoCloseable, org.apache.http.HttpEntity, HttpAsyncContentProducer, ProducingNHttpEntityprotected final ByteBufferprotected final byte[]chunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZENByteArrayEntity(byte[] b) NByteArrayEntity(byte[] b,
int off,
int len) NByteArrayEntity(byte[] b,
int off,
int len,
org.apache.http.entity.ContentType contentType) NByteArrayEntity(byte[] b,
org.apache.http.entity.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.IOExceptiongetContentLength in interface org.apache.http.HttpEntityHttpAsyncContentProducerisRepeatable in interface HttpAsyncContentProducerisRepeatable in interface org.apache.http.HttpEntityisStreaming in interface org.apache.http.HttpEntitygetContent in interface org.apache.http.HttpEntitywriteTo in interface org.apache.http.HttpEntityIOException