1 11 12 package org.eclipse.osgi.framework.internal.protocol; 13 14 import java.io.IOException ; 15 import java.net.*; 16 import org.osgi.service.url.URLStreamHandlerService; 17 import org.osgi.service.url.URLStreamHandlerSetter; 18 19 27 28 public class NullURLStreamHandlerService implements URLStreamHandlerService { 29 30 public URLConnection openConnection(URL u) throws IOException { 31 throw new MalformedURLException(); 32 } 33 34 public boolean equals(URL url1, URL url2) { 35 throw new IllegalStateException (); 36 } 37 38 public int getDefaultPort() { 39 throw new IllegalStateException (); 40 } 41 42 public InetAddress getHostAddress(URL url) { 43 throw new IllegalStateException (); 44 } 45 46 public int hashCode(URL url) { 47 throw new IllegalStateException (); 48 } 49 50 public boolean hostsEqual(URL url1, URL url2) { 51 throw new IllegalStateException (); 52 } 53 54 public boolean sameFile(URL url1, URL url2) { 55 throw new IllegalStateException (); 56 } 57 58 public void setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String file, String query, String ref) { 59 throw new IllegalStateException (); 60 } 61 62 public void setURL(URL u, String protocol, String host, int port, String file, String ref) { 63 throw new IllegalStateException (); 64 } 65 66 public String toExternalForm(URL url) { 67 throw new IllegalStateException (); 68 } 69 70 public void parseURL(URLStreamHandlerSetter realHandler, URL u, String spec, int start, int limit) { 71 throw new IllegalStateException (); 72 } 73 74 } 75 | Popular Tags |