private int read() {
        int curByte = 0;
        try {
            curByte = rawData.get() & 0xFF;
        } catch (Exception e) {
            status = STATUS_FORMAT_ERROR;
        }
        return curByte;
    }
Reads a single byte from the input stream.
core/src/main/java/com/bumptech/glide/gifdecoder/GifDecoder.java