00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 package org.osgi.service.url;
00020
00021 import java.net.*;
00022
00040 public interface URLStreamHandlerService {
00044 public URLConnection openConnection(URL u) throws java.io.IOException;
00045
00055 public void parseURL(URLStreamHandlerSetter realHandler, URL u,
00056 String spec, int start, int limit);
00057
00061 public String toExternalForm(URL u);
00062
00066 public boolean equals(URL u1, URL u2);
00067
00071 public int getDefaultPort();
00072
00076 public InetAddress getHostAddress(URL u);
00077
00081 public int hashCode(URL u);
00082
00086 public boolean hostsEqual(URL u1, URL u2);
00087
00091 public boolean sameFile(URL u1, URL u2);
00092 }