org.apache.hc.core5.http.nio.AsyncEntityConsumer implementation
that processes the data stream content into a string.
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final CharArrayBuffer |
| Access | Constructor and Description |
|---|---|
| public | StringAsyncEntityConsumer(final int bufSize, final int capacityIncrement, final CharCodingConfig charCodingConfig)
|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected int | capacityIncrement()
Implements abstract org. |
| protected final void | data(final CharBuffer
the data packet. src, final boolean flag indicating whether this data packet is the last in the data stream. endOfStream)Implements abstract org. |
| public String | generateContent()
Implements abstract org. |
| public void | |
| protected final void | streamStart(final ContentType
the entity content type contentType)Implements abstract org. |
| capacityIncrement | back to summary |
|---|---|
| private final int capacityIncrement | |
| content | back to summary |
|---|---|
| private final CharArrayBuffer content Hides org. | |
| StringAsyncEntityConsumer | back to summary |
|---|---|
| public StringAsyncEntityConsumer(final int bufSize, final int capacityIncrement, final CharCodingConfig charCodingConfig) | |
| StringAsyncEntityConsumer | back to summary |
|---|---|
| public StringAsyncEntityConsumer(final int capacityIncrement) | |
| StringAsyncEntityConsumer | back to summary |
|---|---|
| public StringAsyncEntityConsumer(final CharCodingConfig charCodingConfig) | |
| StringAsyncEntityConsumer | back to summary |
|---|---|
| public StringAsyncEntityConsumer() | |
| capacityIncrement | back to summary |
|---|---|
| protected int capacityIncrement() Implements abstract org. Doc from org. Triggered to obtain the capacity increment.
| |
| data | back to summary |
|---|---|
| protected final void data(final CharBuffer src, final boolean endOfStream) Implements abstract org. Doc from org. Triggered to pass incoming data packet to the data consumer.
| |
| generateContent | back to summary |
|---|---|
| public String generateContent() Implements abstract org. Doc from org. Triggered to generate entity representation. | |
| releaseResources | back to summary |
|---|---|
| public void releaseResources() Implements org.
| |
| streamStart | back to summary |
|---|---|
| protected final void streamStart(final ContentType contentType) throws HttpException, IOException Implements abstract org. Doc from org. Triggered to signal beginning of entity content stream.
| |