KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > net > URLStreamHandlerFactory


1 /*
2  * @(#)URLStreamHandlerFactory.java 1.19 05/11/17
3  *
4  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.net;
9
10 /**
11  * This interface defines a factory for <code>URL</code> stream
12  * protocol handlers.
13  * <p>
14  * It is used by the <code>URL</code> class to create a
15  * <code>URLStreamHandler</code> for a specific protocol.
16  *
17  * @author Arthur van Hoff
18  * @version 1.19, 11/17/05
19  * @see java.net.URL
20  * @see java.net.URLStreamHandler
21  * @since JDK1.0
22  */

23 public interface URLStreamHandlerFactory {
24     /**
25      * Creates a new <code>URLStreamHandler</code> instance with the specified
26      * protocol.
27      *
28      * @param protocol the protocol ("<code>ftp</code>",
29      * "<code>http</code>", "<code>nntp</code>", etc.).
30      * @return a <code>URLStreamHandler</code> for the specific protocol.
31      * @see java.net.URLStreamHandler
32      */

33     URLStreamHandler JavaDoc createURLStreamHandler(String JavaDoc protocol);
34 }
35
Popular Tags