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

Class MyJarEntry

classpath/java/util/jar/JarFile.java:36–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 }
35
36 private static class MyJarEntry extends JarEntry implements MyEntry {
37 public final Window window;
38 public final int pointer;
39
40 public MyJarEntry(Window window, int pointer) {
41 this.window = window;
42 this.pointer = pointer;
43 }
44
45 public String getName() {
46 try {
47 return entryName(window, pointer);
48 } catch (IOException e) {
49 return null;
50 }
51 }
52
53 public long getCompressedSize() {
54 try {
55 return compressedSize(window, pointer);
56 } catch (IOException e) {
57 return 0;
58 }
59 }
60
61 public long getSize() {
62 try {
63 return uncompressedSize(window, pointer);
64 } catch (IOException e) {
65 return 0;
66 }
67 }
68
69 public int pointer() {
70 return pointer;
71 }
72 }
73
74 private static class JarEntryFactory implements EntryFactory {
75 public static final JarEntryFactory Instance = new JarEntryFactory();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected