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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int
protected void
data
(ByteBuffer src, boolean endOfStream) protected byte[]
void
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hc.core5.http.nio.AsyncDataConsumer
consume, streamEnd, updateCapacity
-
Field Details
-
buffer
private final org.apache.hc.core5.util.ByteArrayBuffer buffer
-
-
Constructor Details
-
SimpleAsyncEntityConsumer
public SimpleAsyncEntityConsumer()
-
-
Method Details
-
streamStart
protected void streamStart(org.apache.hc.core5.http.ContentType contentType) throws org.apache.hc.core5.http.HttpException, IOException - Specified by:
streamStart
in classorg.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityConsumer<byte[]>
- Throws:
org.apache.hc.core5.http.HttpException
IOException
-
capacityIncrement
protected int capacityIncrement()- Specified by:
capacityIncrement
in classorg.apache.hc.core5.http.nio.entity.AbstractBinDataConsumer
-
data
- Specified by:
data
in classorg.apache.hc.core5.http.nio.entity.AbstractBinDataConsumer
- Throws:
IOException
-
generateContent
- Specified by:
generateContent
in classorg.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityConsumer<byte[]>
- Throws:
IOException
-
releaseResources
public void releaseResources()
-