Package org.apache.http.impl.nio.codecs
Class AbstractContentDecoder
java.lang.Object
org.apache.http.impl.nio.codecs.AbstractContentDecoder
- All Implemented Interfaces:
ContentDecoder
- Direct Known Subclasses:
ChunkDecoder,IdentityDecoder,LengthDelimitedDecoder
Abstract
ContentDecoder that serves as a base for all content
decoder implementations.- Since:
- 4.0
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractContentDecoder(ReadableByteChannel channel, SessionInputBuffer buffer, HttpTransportMetricsImpl metrics) Creates an instance of this class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif the entity has been received in its entirety.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.http.nio.ContentDecoder
read
-
Constructor Details
-
AbstractContentDecoder
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.
-
-
Method Details
-
isCompleted
public boolean isCompleted()Description copied from interface:ContentDecoderReturnstrueif the entity has been received in its entirety.- Specified by:
isCompletedin interfaceContentDecoder- Returns:
trueif all the content has been consumed,falseotherwise.
-