MCPcopy Create free account
hub / github.com/L-JINBIN/ApkDataMultiplexing / copyZipEntry

Method copyZipEntry

src/bin/zip/ZipMaker.java:172–182  ·  view source on GitHub ↗
(ZipEntry ze, ZipFile zipFile)

Source from the content-addressed store, hash-verified

170 }
171
172 public void copyZipEntry(ZipEntry ze, ZipFile zipFile) throws IOException {
173 putNextRawEntry(ze);
174 if (!ze.isDirectory()) {
175 InputStream is = zipFile.getRawInputStream(ze);
176 byte[] buffer = copyEntryBuffer;
177 int len;
178 while ((len = is.read(buffer)) != -1) {
179 writeRaw(buffer, 0, len);
180 }
181 }
182 }
183
184 public HostEntryHolder putNextHostEntry(String name, ZipFile zipFile) throws IOException {
185 if (name.endsWith("/") || name.endsWith("\\")) {

Callers 1

optimizeMethod · 0.80

Calls 5

putNextRawEntryMethod · 0.95
writeRawMethod · 0.95
isDirectoryMethod · 0.80
getRawInputStreamMethod · 0.80
readMethod · 0.65

Tested by

no test coverage detected