@Override
    public void close() throws IOException {
        buf = null;
        InputStream localIn = in;
        in = null;
        if (localIn != null) {
            localIn.close();
        }
    }
Closes this stream. The source stream is closed and any resources
associated with it are released.

@throws IOException
            if an error occurs while closing this stream.
core/src/main/java/com/bumptech/glide/load/resource/bitmap/RecyclableBufferedInputStream.java