Class StringAsyncEntityConsumer
java.lang.Object
org.apache.hc.core5.http.nio.entity.AbstractCharDataConsumer
org.apache.hc.core5.http.nio.entity.AbstractCharAsyncEntityConsumer<T>
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 org.apache.hc.core5.http.nio.entity.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 org.apache.hc.core5.http.nio.entity.CharSequenceAsyncEntityConsumer
capacityIncrement, data, releaseResources, streamStartMethods inherited from class org.apache.hc.core5.http.nio.entity.AbstractCharAsyncEntityConsumer
completed, failed, getContent, streamStartMethods inherited from class org.apache.hc.core5.http.nio.entity.AbstractCharDataConsumer
consume, setCharset, streamEnd, updateCapacityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hc.core5.http.nio.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
-