in oss-20190517/src/main/java/com/aliyun/sdk/service/oss20190517/encryption/internal/CipherInputStream.java [36:53]
public int read() throws IOException {
if (curr_pos >= max_pos) {
if (eof)
return -1;
int count = 0;
int len;
do {
if (count > MAX_RETRY)
throw new IOException("exceeded maximum number of attempts to read next chunk of data");
len = nextChunk();
count++;
} while (len == 0);
if (len == -1)
return -1;
}
return ((int) bufout[curr_pos++] & 0xFF);
}