/** * Fill the uncompressed bytes buffer by reading the underlying inputStream. */ protected boolean readyBuffer() throws IOException { if (position < valid) { return true; } if (closed) { return false; } valid = uncompress(in, uncompressed); if (valid < 0) { return false; } position = 0; return (position < valid); }