MCPcopy Create free account
hub / github.com/ReadyTalk/avian / closeEntry

Method closeEntry

classpath/java/util/zip/ZipOutputStream.java:72–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers 1

createZipMethod · 0.95

Calls 5

writeMethod · 0.95
finishMethod · 0.95
writeDataDescriptorMethod · 0.95
getValueMethod · 0.65
resetMethod · 0.45

Tested by 1

createZipMethod · 0.76