| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBuffer | |
| private final CharsetEncoder | |
| private final ContentType | |
| private static final CharBuffer | |
| private final int | |
| private volatile AbstractCharAsyncEntityProducer. |
| Access | Constructor and Description |
|---|---|
| public | AbstractCharAsyncEntityProducer(final int bufferSize, final int fragmentSizeHint, final ContentType contentType)
|
| Modifier and Type | Method and Description |
|---|---|
| public final int | available()
Implements org. |
| protected abstract int | Returns: the number of bytes immediately available for outputReturns the number of bytes immediately available for output. |
| private void | |
| public String | getContentEncoding()
Implements org. |
| public long | getContentLength()
Implements org. |
| public final String | getContentType()
Implements org. |
| public Set | getTrailerNames()
Implements org. |
| public boolean | isChunked()
Implements org. |
| public final void | produce(final DataStreamChannel
the data channel capable to accepting more data. channel)Implements org. |
| protected abstract void | produceData(StreamChannel<CharBuffer>
the data channel capable to accepting more data. channel)Triggered to signal the ability of the underlying char channel to accept more data. |
| public void | |
| pack-priv final void | |
| pack-priv final int |
| bytebuf | back to summary |
|---|---|
| private final ByteBuffer bytebuf | |
| charsetEncoder | back to summary |
|---|---|
| private final CharsetEncoder charsetEncoder | |
| contentType | back to summary |
|---|---|
| private final ContentType contentType | |
| EMPTY | back to summary |
|---|---|
| private static final CharBuffer EMPTY | |
| fragmentSizeHint | back to summary |
|---|---|
| private final int fragmentSizeHint | |
| state | back to summary |
|---|---|
| private volatile AbstractCharAsyncEntityProducer. | |
| AbstractCharAsyncEntityProducer | back to summary |
|---|---|
| public AbstractCharAsyncEntityProducer(final int bufferSize, final int fragmentSizeHint, final ContentType contentType) | |
| available | back to summary |
|---|---|
| public final int available() Implements org. Doc from org. Returns the number of bytes immediately available for output. This method can be used as a hint to control output events of the underlying I/O session.
| |
| availableData | back to summary |
|---|---|
| protected abstract int availableData() Returns the number of bytes immediately available for output. This method can be used as a hint to control output events of the underlying I/O session.
| |
| flush | back to summary |
|---|---|
| private void flush(final StreamChannel<ByteBuffer> channel) throws IOException | |
| getContentEncoding | back to summary |
|---|---|
| public String getContentEncoding() Implements org. Doc from org. Returns content encoding of the entity, if known.
| |
| getContentLength | back to summary |
|---|---|
| public long getContentLength() Implements org. Doc from org. Returns length of the entity, if known.
| |
| getContentType | back to summary |
|---|---|
| public final String getContentType() Implements org. Doc from org. Returns content type of the entity, if known.
| |
| getTrailerNames | back to summary |
|---|---|
| public Set Implements org. Doc from org. Preliminary declaration of trailing headers.
| |
| isChunked | back to summary |
|---|---|
| public boolean isChunked() Implements org. Doc from org. Returns chunked transfer hint for this entity. The behavior of wrapping entities is implementation dependent, but should respect the primary purpose.
| |
| produce | back to summary |
|---|---|
| public final void produce(final DataStreamChannel channel) throws IOException Implements org. Doc from org. Triggered to signal the ability of the underlying data channel to accept more data. The data producer can choose to write data immediately inside the call or asynchronously at some later point.
| |
| produceData | back to summary |
|---|---|
| protected abstract void produceData(StreamChannel<CharBuffer> channel) throws IOException Triggered to signal the ability of the underlying char channel to accept more data. The data producer can choose to write data immediately inside the call or asynchronously at some later point.
| |
| releaseResources | back to summary |
|---|---|
| public void releaseResources() Implements org.
| |
| streamEnd | back to summary |
|---|---|
| pack-priv final void streamEnd(final StreamChannel<ByteBuffer> channel) throws IOException | |
| writeData | back to summary |
|---|---|
| pack-priv final int writeData(final StreamChannel<ByteBuffer> channel, final CharBuffer src) throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| public static final AbstractCharAsyncEntityProducer. | |
| public static final AbstractCharAsyncEntityProducer. | |
| public static final AbstractCharAsyncEntityProducer. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static AbstractCharAsyncEntityProducer. | |
| public static AbstractCharAsyncEntityProducer. |
| ACTIVE | back to summary |
|---|---|
| public static final AbstractCharAsyncEntityProducer. | |
| END_STREAM | back to summary |
|---|---|
| public static final AbstractCharAsyncEntityProducer. | |
| FLUSHING | back to summary |
|---|---|
| public static final AbstractCharAsyncEntityProducer. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static AbstractCharAsyncEntityProducer. | |
| values | back to summary |
|---|---|
| public static AbstractCharAsyncEntityProducer. | |