A stream wrapper that triggers actions on {@link #close close()} and EOF.Primarily used to auto-release an underlying {@link ManagedClientConnection connection}when the response body is consumed or no longer needed.
This class is based on AutoCloseInputStream
in HttpClient 3.1, but has notable differences. It does not allow mark/reset, distinguishes different kinds of event, and does not always close the underlying stream on EOF. That decision is left to the {@link EofSensorWatcher watcher}.
@see EofSensorWatcher EofSensorWatcher
@author
Roland Weber
@author Ortwin Glueck
@author Eric Johnson
@author
Mike Bowler
@version $Revision: 672367 $
@since 4.0