1 11 12 package org.eclipse.osgi.framework.internal.protocol.reference; 13 14 import java.io.IOException ; 15 import java.net.*; 16 17 29 public class Handler extends URLStreamHandler { 30 public Handler() { 31 } 32 33 protected URLConnection openConnection(URL url) throws IOException { 34 return new ReferenceURLConnection(url); 35 } 36 37 protected void parseURL(URL url, String str, int start, int end) { 38 if (end < start) { 39 return; 40 } 41 String reference = (start < end) ? str.substring(start, end) : url.getPath(); 42 43 setURL(url, url.getProtocol(), null, -1, null, null, reference, null, null); 44 } 45 46 } 47 | Popular Tags |