1 17 package org.apache.geronimo.kernel.classloader; 18 19 import java.net.URL ; 20 import java.io.InputStream ; 21 import java.io.IOException ; 22 import java.util.jar.Manifest ; 23 import java.util.jar.Attributes ; 24 import java.security.cert.Certificate ; 25 26 38 public interface ResourceHandle { 39 43 String getName(); 44 45 48 URL getUrl(); 49 50 54 boolean isDirectory(); 55 56 59 URL getCodeSourceUrl(); 60 61 64 InputStream getInputStream() throws IOException ; 65 66 69 int getContentLength(); 70 71 74 byte[] getBytes() throws IOException ; 75 76 80 Manifest getManifest() throws IOException ; 81 82 85 Certificate [] getCertificates(); 86 87 90 Attributes getAttributes() throws IOException ; 91 92 96 void close(); 97 } 98 | Popular Tags |