Class Apache5ResponseContent

java.lang.Object
java.io.InputStream
com.google.api.client.http.apache.v5.Apache5ResponseContent
All Implemented Interfaces:
Closeable, AutoCloseable

public class Apache5ResponseContent extends InputStream
Class that wraps an HttpEntity's content InputStream along with the ClassicHttpResponse that contains this entity. The main purpose is to be able to close the response as well as the content input stream when close() is called, in order to not break the existing contract with clients using apache v4 that only required them to close the input stream to clean up all resources.