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.ByteArrayBufferbuffer
-
Constructor Summary
Constructors Constructor Description SimpleAsyncEntityConsumer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intcapacityIncrement()protected voiddata(java.nio.ByteBuffer src, boolean endOfStream)protected byte[]generateContent()voidreleaseResources()protected voidstreamStart(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:
streamStartin classorg.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityConsumer<byte[]>- Throws:
org.apache.hc.core5.http.HttpExceptionjava.io.IOException
-
capacityIncrement
protected int capacityIncrement()
- Specified by:
capacityIncrementin classorg.apache.hc.core5.http.nio.entity.AbstractBinDataConsumer
-
data
protected void data(java.nio.ByteBuffer src, boolean endOfStream) throws java.io.IOException- Specified by:
datain classorg.apache.hc.core5.http.nio.entity.AbstractBinDataConsumer- Throws:
java.io.IOException
-
generateContent
protected byte[] generateContent() throws java.io.IOException- Specified by:
generateContentin classorg.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityConsumer<byte[]>- Throws:
java.io.IOException
-
releaseResources
public void releaseResources()
-
-