Class ContentLengthInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.bumptech.glide.util.ContentLengthInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public final class ContentLengthInputStream extends FilterInputStream
Uses the content length as the basis for the return value of available() and verifies that at least content length bytes are returned from the various read methods.