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

Class MyZipEntry

classpath/java/util/zip/ZipFile.java:281–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279 }
280
281 private static class MyZipEntry extends ZipEntry implements MyEntry {
282 public final Window window;
283 public final int pointer;
284
285 public MyZipEntry(Window window, int pointer) {
286 super(null);
287 this.window = window;
288 this.pointer = pointer;
289 }
290
291 public String getName() {
292 try {
293 return entryName(window, pointer);
294 } catch (IOException e) {
295 return null;
296 }
297 }
298
299 public long getCompressedSize() {
300 try {
301 return compressedSize(window, pointer);
302 } catch (IOException e) {
303 return 0;
304 }
305 }
306
307 public long getSize() {
308 try {
309 return uncompressedSize(window, pointer);
310 } catch (IOException e) {
311 return 0;
312 }
313 }
314
315 public int pointer() {
316 return pointer;
317 }
318 }
319
320 protected interface EntryFactory {
321 public ZipEntry makeEntry(Window window, int pointer);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected