public abstract class

AbstractContentDecoder

extends Object
implements ContentDecoder
java.lang.Object
   ↳ org.apache.http.impl.nio.codecs.AbstractContentDecoder
Known Direct Subclasses

Class Overview

Abstract ContentDecoder that serves as a base for all content decoder implementations.

Summary

Fields
protected final SessionInputBuffer buffer
protected final ReadableByteChannel channel
protected boolean completed
protected final HttpTransportMetricsImpl metrics
Public Constructors
AbstractContentDecoder(ReadableByteChannel channel, SessionInputBuffer buffer, HttpTransportMetricsImpl metrics)
Creates an instance of this class.
Public Methods
boolean isCompleted()
Returns true if the entity has been received in its entirety.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.http.nio.ContentDecoder

Fields

protected final SessionInputBuffer buffer

protected final ReadableByteChannel channel

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.