Class ConsumingInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.google.api.client.http.ConsumingInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

final class ConsumingInputStream extends FilterInputStream
This class in meant to wrap an InputStream so that all bytes in the steam are read and discarded on InputStream.close(). This ensures that the underlying connection has the option to be reused.