1 package com.quadcap.io.dir; 2 3 40 41 import java.io.IOException ; 42 import java.io.InputStream ; 43 44 49 public class JarEntry implements Entry { 50 JarDirectory dir; 51 java.util.jar.JarEntry je; 52 53 JarEntry(JarDirectory dir, java.util.jar.JarEntry je) { 54 this.dir = dir; 55 this.je = je; 56 } 57 58 public String getName() { 59 return je.getName(); 60 } 61 62 public long getTime() { 63 return je.getTime(); 64 } 65 66 public long getSize() { 67 return je.getSize(); 68 } 69 70 public InputStream getInputStream() throws IOException { 71 return dir.jar.getInputStream(je); 72 } 73 74 public boolean isDirectory() { 75 return je.isDirectory(); 76 } 77 } 78 | Popular Tags |