Class SimpleAsyncEntityConsumer
- java.lang.Object
-
- org.apache.hc.core5.http.nio.entity.AbstractBinDataConsumer
-
- org.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityConsumer<byte[]>
-
- org.apache.hc.client5.http.async.methods.SimpleAsyncEntityConsumer
-
- All Implemented Interfaces:
org.apache.hc.core5.http.nio.AsyncDataConsumer
,org.apache.hc.core5.http.nio.AsyncEntityConsumer<byte[]>
,org.apache.hc.core5.http.nio.ResourceHolder
final class SimpleAsyncEntityConsumer extends org.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityConsumer<byte[]>
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.hc.core5.util.ByteArrayBuffer
buffer
-
Constructor Summary
Constructors Constructor Description SimpleAsyncEntityConsumer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
capacityIncrement()
protected void
data(java.nio.ByteBuffer src, boolean endOfStream)
protected byte[]
generateContent()
void
releaseResources()
protected void
streamStart(org.apache.hc.core5.http.ContentType contentType)
-
Methods inherited from class org.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityConsumer
completed, failed, getContent, streamStart
-
Methods inherited from class org.apache.hc.core5.http.nio.entity.AbstractBinDataConsumer
consume, streamEnd, updateCapacity
-
-
-
-
Method Detail
-
streamStart
protected void streamStart(org.apache.hc.core5.http.ContentType contentType) throws org.apache.hc.core5.http.HttpException, java.io.IOException
- Specified by:
streamStart
in classorg.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityConsumer<byte[]>
- Throws:
org.apache.hc.core5.http.HttpException
java.io.IOException
-
capacityIncrement
protected int capacityIncrement()
- Specified by:
capacityIncrement
in classorg.apache.hc.core5.http.nio.entity.AbstractBinDataConsumer
-
data
protected void data(java.nio.ByteBuffer src, boolean endOfStream) throws java.io.IOException
- Specified by:
data
in classorg.apache.hc.core5.http.nio.entity.AbstractBinDataConsumer
- Throws:
java.io.IOException
-
generateContent
protected byte[] generateContent() throws java.io.IOException
- Specified by:
generateContent
in classorg.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityConsumer<byte[]>
- Throws:
java.io.IOException
-
releaseResources
public void releaseResources()
-
-