public class

SkipContentListener

extends Object
implements ContentListener
java.lang.Object
   ↳ org.apache.http.nio.entity.SkipContentListener

Class Overview

A simple ContentListener that reads and ignores all content.

Summary

Public Constructors
SkipContentListener(ByteBufferAllocator allocator)
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.http.nio.entity.ContentListener

Public Constructors

public SkipContentListener (ByteBufferAllocator allocator)

Public Methods

public void contentAvailable (ContentDecoder decoder, IOControl ioctrl)

Notification that content is available to be read from the decoder.

Parameters
decoder content decoder.
ioctrl I/O control of the underlying connection.
Throws
IOException

public void finished ()

Notification that any resources allocated for reading can be released.