int index = syncState.buffer(4096); int bytes = in.read(syncState.data, index, 4096);
int index = syncState.buffer(bufsize); int bytes = in.read(syncState.data, index, bufsize);
    private void fetchData() throws IOException {        if (!eos) {            // copy 4096 bytes from compressed stream to syncState.            int index = syncState.buffer(4096);            int bytes = in.read(syncState.data, index, 4096);            syncState.wrote(bytes);             if (bytes == 0) {                eos = true;            }        }    }