Known Direct Subclasses
|
Class Overview
Abstract ContentDecoder
that serves as a base for all content
decoder implementations.
Summary
Public Methods |
boolean
|
isCompleted()
Returns true if the entity has been received 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.ContentDecoder
abstract
boolean
|
isCompleted()
Returns true if the entity has been received in its
entirety.
|
abstract
int
|
read(ByteBuffer dst)
Reads a portion of content from the underlying channel
|
|
Fields
protected
boolean
completed
protected
final
HttpTransportMetricsImpl
metrics
Public Constructors
public
AbstractContentDecoder
(ReadableByteChannel channel, SessionInputBuffer buffer, HttpTransportMetricsImpl metrics)
Creates an instance of this class.
Parameters
channel
| the source channel. |
buffer
| the session input buffer that can be used to store
session data for intermediate processing. |
metrics
| Transport metrics of the underlying HTTP transport.
|
Public Methods
public
boolean
isCompleted
()
Returns true
if the entity has been received in its
entirety.
Returns
true
if all the content has been consumed,
false
otherwise.