Package org.apache.http.nio.entity
Class SkipContentListener
- java.lang.Object
-
- org.apache.http.nio.entity.SkipContentListener
-
- All Implemented Interfaces:
ContentListener
@Deprecated public class SkipContentListener extends java.lang.Object implements ContentListener
Deprecated.(4.2)A simpleContentListener
that reads and ignores all content.- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.ByteBuffer
buffer
Deprecated.
-
Constructor Summary
Constructors Constructor Description SkipContentListener(ByteBufferAllocator allocator)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
contentAvailable(ContentDecoder decoder, IOControl ioControl)
Deprecated.Notification that content is available to be read from the decoder.void
finished()
Deprecated.Notification that any resources allocated for reading can be released.
-
-
-
Constructor Detail
-
SkipContentListener
public SkipContentListener(ByteBufferAllocator allocator)
Deprecated.
-
-
Method Detail
-
contentAvailable
public void contentAvailable(ContentDecoder decoder, IOControl ioControl) throws java.io.IOException
Deprecated.Description copied from interface:ContentListener
Notification that content is available to be read from the decoder.- Specified by:
contentAvailable
in interfaceContentListener
- Parameters:
decoder
- content decoder.ioControl
- I/O control of the underlying connection.- Throws:
java.io.IOException
-
finished
public void finished()
Deprecated.Description copied from interface:ContentListener
Notification that any resources allocated for reading can be released.- Specified by:
finished
in interfaceContentListener
-
-