Class StringAsyncEntityConsumer
java.lang.Object
org.apache.hc.core5.http.nio.entity.AbstractCharDataConsumer
org.apache.hc.core5.http.nio.entity.AbstractCharAsyncEntityConsumer<String>
org.apache.hc.core5.http.nio.entity.CharSequenceAsyncEntityConsumer<String>
org.apache.hc.core5.http.nio.entity.StringAsyncEntityConsumer
- All Implemented Interfaces:
AsyncDataConsumer, AsyncEntityConsumer<String>, ResourceHolder
Basic
AsyncEntityConsumer implementation
that processes the data stream content into a string.- Since:
- 5.0
-
Field Summary
Fields inherited from class AbstractCharDataConsumer
DEF_BUF_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionStringAsyncEntityConsumer(int capacityIncrement) StringAsyncEntityConsumer(int bufSize, int capacityIncrement, CharCodingConfig charCodingConfig) StringAsyncEntityConsumer(CharCodingConfig charCodingConfig) -
Method Summary
Modifier and TypeMethodDescriptionTriggered to generate entity representation.Methods inherited from class CharSequenceAsyncEntityConsumer
capacityIncrement, data, releaseResources, streamStartMethods inherited from class AbstractCharAsyncEntityConsumer
completed, failed, getContent, streamStartMethods inherited from class AbstractCharDataConsumer
consume, setCharset, streamEnd, updateCapacityMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AsyncDataConsumer
consume, streamEnd, updateCapacity
-
Constructor Details
-
StringAsyncEntityConsumer
public StringAsyncEntityConsumer(int bufSize, int capacityIncrement, CharCodingConfig charCodingConfig) -
StringAsyncEntityConsumer
public StringAsyncEntityConsumer(int capacityIncrement) -
StringAsyncEntityConsumer
-
StringAsyncEntityConsumer
public StringAsyncEntityConsumer()
-
-
Method Details
-
generateContent
Description copied from class:AbstractCharAsyncEntityConsumerTriggered to generate entity representation.- Overrides:
generateContentin classCharSequenceAsyncEntityConsumer<String>- Returns:
- the entity content
-