ExceptionCatchingInputStream
An java.io.InputStream that catches java.io.IOExceptions during read and skip calls and stores them so they can later be handled or thrown. This class is a workaround for a framework issue where exceptions during reads while decoding bitmaps in can return partially decoded bitmaps.
See https://github.com/bumptech/glide/issues/126.
Deprecated
In some cases, callers may not handle getting 0 or -1 return values from methods, which can lead to infinite loops (see #4438). Use ExceptionPassthroughInputStream instead. This class will be deleted in a future version of Glide.