MCPcopy Index your code
hub / github.com/processing/processing / unzipEntry

Method unzipEntry

app/src/processing/app/Util.java:650–659  ·  view source on GitHub ↗
(ZipInputStream zin, File f)

Source from the content-addressed store, hash-verified

648
649
650 static protected void unzipEntry(ZipInputStream zin, File f) throws IOException {
651 FileOutputStream out = new FileOutputStream(f);
652 byte[] b = new byte[512];
653 int len = 0;
654 while ((len = zin.read(b)) != -1) {
655 out.write(b, 0, len);
656 }
657 out.flush();
658 out.close();
659 }
660
661
662 static public byte[] gzipEncode(byte[] what) throws IOException {

Callers 1

unzipMethod · 0.95

Calls 4

writeMethod · 0.65
readMethod · 0.45
flushMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected