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

Method openEntryAsZipFile

src/bin/zip/ZipFile.java:257–262  ·  view source on GitHub ↗
(ZipEntry entry)

Source from the content-addressed store, hash-verified

255 }
256
257 public ZipFile openEntryAsZipFile(ZipEntry entry) throws IOException {
258 if (entry.getMethod() != METHOD_STORED) {
259 throw new IOException("Entry is not stored: " + entry.getName());
260 }
261 return new ZipFile(archive.newFragment(entry.getDataOffset(), entry.getCompressedSize()));
262 }
263
264 public RandomAccessFile getArchive() {
265 return archive;

Callers

nothing calls this directly

Calls 5

getDataOffsetMethod · 0.80
getCompressedSizeMethod · 0.80
getNameMethod · 0.65
newFragmentMethod · 0.65
getMethodMethod · 0.45

Tested by

no test coverage detected