(byte[] b, int offset, int length)
| 84 | } |
| 85 | |
| 86 | @Override |
| 87 | public void write(byte[] b, int offset, int length) throws IOException { |
| 88 | if (offset < 0 || length < 0 || b.length - (offset + length) < 0) |
| 89 | throw new IndexOutOfBoundsException(); |
| 90 | |
| 91 | currentEntry.uncompSize += length; |
| 92 | crc.update(b, offset, length); |
| 93 | currentEntry.crc = (int) crc.getValue(); |
| 94 | |
| 95 | deflater.setInput(b, offset, length); |
| 96 | while (deflater.getRemaining() > 0) |
| 97 | deflate(); |
| 98 | } |
| 99 | |
| 100 | @Override |
| 101 | public void write(int b) throws IOException { |