org.apache.http.nio.entity
Interface ConsumingNHttpEntity

All Superinterfaces:
org.apache.http.HttpEntity
All Known Implementing Classes:
BufferingNHttpEntity, ConsumingNHttpEntityTemplate

public interface ConsumingNHttpEntity
extends org.apache.http.HttpEntity

A non-blocking entity that allows content to be consumed from a decoder.

Author:
Sam Berlin

Method Summary
 void consumeContent(ContentDecoder decoder, IOControl ioctrl)
          Notification that content is available to be read from the decoder.
 void finish()
          Notification that any resources allocated for reading can be released.
 
Methods inherited from interface org.apache.http.HttpEntity
consumeContent, getContent, getContentEncoding, getContentLength, getContentType, isChunked, isRepeatable, isStreaming, writeTo
 

Method Detail

consumeContent

void consumeContent(ContentDecoder decoder,
                    IOControl ioctrl)
                    throws java.io.IOException
Notification that content is available to be read from the decoder.

Throws:
java.io.IOException

finish

void finish()
            throws java.io.IOException
Notification that any resources allocated for reading can be released.

Throws:
java.io.IOException


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.