public abstract class AbstractContentEncoder extends Object implements ContentEncoder
ContentEncoder that serves as a base for all content
encoder implementations.| Constructor and Description |
|---|
AbstractContentEncoder(WritableByteChannel channel,
SessionOutputBuffer buffer,
HttpTransportMetricsImpl metrics)
Creates an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
complete()
Terminates the content stream.
|
boolean |
isCompleted()
Returns
true if the entity has been transferred in its
entirety. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwritepublic AbstractContentEncoder(WritableByteChannel channel, SessionOutputBuffer buffer, HttpTransportMetricsImpl metrics)
channel - the destination channel.buffer - the session output buffer that can be used to store
session data for intermediate processing.metrics - Transport metrics of the underlying HTTP transport.public boolean isCompleted()
ContentEncodertrue if the entity has been transferred in its
entirety.isCompleted in interface ContentEncodertrue if all the content has been produced,
false otherwise.public void complete()
throws IOException
ContentEncodercomplete in interface ContentEncoderIOException - if I/O error occurs while writing contentCopyright © 2010 - 2020 Adobe. All Rights Reserved