1 11 12 package org.eclipse.osgi.framework.internal.protocol.bundleentry; 13 14 import java.io.FileNotFoundException ; 15 import java.io.IOException ; 16 import java.net.URL ; 17 import org.eclipse.osgi.baseadaptor.BaseData; 18 import org.eclipse.osgi.baseadaptor.bundlefile.BundleEntry; 19 import org.eclipse.osgi.framework.internal.core.*; 20 21 24 25 public class Handler extends BundleResourceHandler { 26 27 30 public Handler() { 31 super(); 32 } 33 34 public Handler(BundleEntry bundleEntry) { 35 super(bundleEntry); 36 } 37 38 protected BundleEntry findBundleEntry(URL url, AbstractBundle bundle) throws IOException { 39 BaseData bundleData = (BaseData) bundle.getBundleData(); 40 BundleEntry entry = bundleData.getBundleFile().getEntry(url.getPath()); 41 if (entry == null) 42 throw new FileNotFoundException (url.getPath()); 43 return entry; 44 45 } 46 47 } 48 | Popular Tags |