org.apache.http.nio.entity
Interface ContentListener

All Known Implementing Classes:
SkipContentListener

public interface ContentListener

A listener for available data on a non-blocking ConsumingNHttpEntity.


Method Summary
 void contentAvailable(ContentDecoder decoder, IOControl ioctrl)
          Notification that content is available to be read from the decoder.
 void finished()
          Notification that any resources allocated for reading can be released.
 

Method Detail

contentAvailable

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

Throws:
java.io.IOException

finished

void finished()
Notification that any resources allocated for reading can be released.



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