Known Direct Subclasses
|
Class Overview
Abstract ContentEncoder
that serves as a base for all content
encoder implementations.
Summary
Public Methods |
void
|
complete()
Terminates the content stream.
|
boolean
|
isCompleted()
Returns true if the entity has been transferred in its
entirety.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
org.apache.http.nio.ContentEncoder
abstract
void
|
complete()
Terminates the content stream.
|
abstract
boolean
|
isCompleted()
Returns true if the entity has been transferred in its
entirety.
|
abstract
int
|
write(ByteBuffer src)
Writes a portion of entity content to the underlying channel.
|
|
Fields
protected
boolean
completed
protected
final
HttpTransportMetricsImpl
metrics
Public Constructors
public
AbstractContentEncoder
(WritableByteChannel channel, SessionOutputBuffer buffer, HttpTransportMetricsImpl metrics)
Creates an instance of this class.
Parameters
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 Methods
public
void
complete
()
Terminates the content stream.
public
boolean
isCompleted
()
Returns true
if the entity has been transferred in its
entirety.
Returns
true
if all the content has been produced,
false
otherwise.
Protected Methods
protected
void
assertNotCompleted
()