private void doneReading() throws IOException { // Move any outstanding unread bytes into the inflater. One side-effect of // deflate compression is that sometimes there are bytes remaining in the // stream after we've consumed all of the content. if (compressedLimit > 0) { inflaterSource.refill(); if (compressedLimit != 0) throw new IOException("compressedLimit > 0: " + compressedLimit); } }
private void doneReading() throws IOException { // Move any outstanding unread bytes into the inflater. One side-effect of // deflate compression is that sometimes there are bytes remaining in the // stream after we've consumed all of the content. if (compressedLimit > 0) { inflaterSource.refill(); if (compressedLimit != 0) throw new IOException("compressedLimit > 0: " + compressedLimit); } }
private void doneReading() throws IOException { // Move any outstanding unread bytes into the inflater. One side-effect of // deflate compression is that sometimes there are bytes remaining in the // stream after we've consumed all of the content. if (compressedLimit > 0) { inflaterSource.refill(); if (compressedLimit != 0) throw new IOException("compressedLimit > 0: " + compressedLimit); } }
boolean sourceExhausted = refill();