org.apache.http.nio.entity
Class SkipContentListener
java.lang.Object
org.apache.http.nio.entity.SkipContentListener
- All Implemented Interfaces:
- ContentListener
public class SkipContentListener
- extends Object
- implements ContentListener
A simple ContentListener
that reads and ignores all content.
- Since:
- 4.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SkipContentListener
public SkipContentListener(ByteBufferAllocator allocator)
contentAvailable
public void contentAvailable(ContentDecoder decoder,
IOControl ioctrl)
throws IOException
- Description copied from interface:
ContentListener
- Notification that content is available to be read from the decoder.
- Specified by:
contentAvailable
in interface ContentListener
- Parameters:
decoder
- content decoder.ioctrl
- I/O control of the underlying connection.
- Throws:
IOException
finished
public void finished()
- Description copied from interface:
ContentListener
- Notification that any resources allocated for reading can be released.
- Specified by:
finished
in interface ContentListener
Copyright © 2005-2010 The Apache Software Foundation. All Rights Reserved.