throw new IOException("Read called on a chunk size of 0");
return -1;
    public int read() throws IOException {        if (size == 0) {            throw new IOException("Read called on a chunk size of 0");        }        if (start == size) {            readChunk();        }        if (size == 0) {            return -1;        }        return chunk[start++];    }