Data Stream Handler

Description
This bundle demonstrates how to use the OSGi URL Handlers Service. It registers a URL stream handler for the "data:" protocol.

Contributor(s)
Stephane Chomat (stephane.chomat@imag.fr)

License
GPL

Services
Name(s)
org.osgi.service.url.URLStreamHandlerService
Relevant interface(s)
public interface URLStreamHandlerService
{
public boolean equals(URL u1, URL u2);
public int getDefaultPort();
public InetAddress getHostAddress(URL u);
public int hashCode(URL u);
public boolean hostsEqual(URL u1, URL u2);
public URLConnection openConnection(URL u) throws IOException;
public void parseURL(
URLStreamHandlerSetter realHandler,
URL u, String spec, int start, int limit);
public boolean sameFile(URL u1, URL u2);
public String toExternalForm(URL u);
}

public interface URLStreamHandlerSetter
{
public void setURL(
URL u, String protocol, String host,
int port, String file, String ref);
public void setURL(
URL u, String protocol, String host, int port,
String authority, String userInfo, String path,
String query, String ref);
}

Properties
None

Requirements
org.osgi.service.url