1 |
/* URLStreamHandlerFactory.java -- Maps protocols to URLStreamHandlers |
/* URLStreamHandlerFactory.java -- Maps protocols to URLStreamHandlers |
2 |
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. |
Copyright (C) 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
46 |
/** |
/** |
47 |
* This interface contains one method which maps the protocol portion of |
* This interface contains one method which maps the protocol portion of |
48 |
* a URL (eg, "http" in "http://www.urbanophile.com/arenn/") to a |
* a URL (eg, "http" in "http://www.urbanophile.com/arenn/") to a |
49 |
* URLStreamHandler object. |
* <code>URLStreamHandler</code> object. |
50 |
* |
* |
51 |
* @author Aaron M. Renn (arenn@urbanophile.com) |
* @author Aaron M. Renn (arenn@urbanophile.com) |
52 |
* @author Warren Levy <warrenl@cygnus.com> |
* @author Warren Levy <warrenl@cygnus.com> |
53 |
*/ |
*/ |
54 |
public interface URLStreamHandlerFactory |
public interface URLStreamHandlerFactory |
55 |
{ |
{ |
56 |
/** |
/** |
57 |
* This method maps the protocol portion of a URL to a URLStreamHandler |
* This method maps the protocol portion of a URL to a |
58 |
* object. |
* <code>URLStreamHandler</code> object. |
59 |
* |
* |
60 |
* @param protocol The protocol name to map ("http", "ftp", etc). |
* @param protocol The protocol name to map ("http", "ftp", etc). |
61 |
* |
* |
62 |
* @return The URLStreamHandler for the specified protocol |
* @return The <code>URLStreamHandler</code> for the specified protocol |
63 |
*/ |
*/ |
64 |
URLStreamHandler |
public URLStreamHandler createURLStreamHandler(String protocol); |
|
createURLStreamHandler(String protocol); |
|
65 |
|
|
66 |
} // interface URLStreamHandlerFactory |
} // interface URLStreamHandlerFactory |
67 |
|
|