()
| 70 | } |
| 71 | |
| 72 | public void closeEntry() throws IOException { |
| 73 | // write remainder of buffer if partially full |
| 74 | if (bufferIndex != 0) { |
| 75 | write(inputBuffer, 0, bufferIndex); |
| 76 | bufferIndex = 0; |
| 77 | } |
| 78 | |
| 79 | finish(); |
| 80 | |
| 81 | currentEntry.crc = (int) crc.getValue(); |
| 82 | crc.reset(); |
| 83 | writeDataDescriptor(currentEntry); |
| 84 | } |
| 85 | |
| 86 | @Override |
| 87 | public void write(byte[] b, int offset, int length) throws IOException { |