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

Method write

classpath/java/util/zip/ZipOutputStream.java:86–98  ·  view source on GitHub ↗
(byte[] b, int offset, int length)

Source from the content-addressed store, hash-verified

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 {

Callers 2

createZipMethod · 0.95
closeEntryMethod · 0.95

Calls 5

deflateMethod · 0.95
updateMethod · 0.65
getValueMethod · 0.65
setInputMethod · 0.45
getRemainingMethod · 0.45

Tested by 1

createZipMethod · 0.76