home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 July & August
/
Pcwk78a98.iso
/
Internet
/
Javadraw
/
DATA.Z
/
URLStreamHandlerFactory.java
< prev
next >
Wrap
Text File
|
1997-08-30
|
2KB
|
51 lines
/*
* @(#)URLStreamHandlerFactory.java 1.8 97/01/25
*
* Copyright (c) 1995, 1996 Sun Microsystems, Inc. All Rights Reserved.
*
* This software is the confidential and proprietary information of Sun
* Microsystems, Inc. ("Confidential Information"). You shall not
* disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into
* with Sun.
*
* SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
* SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
* PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
* SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
* THIS SOFTWARE OR ITS DERIVATIVES.
*
* CopyrightVersion 1.1_beta
*
*/
package java.net;
/**
* This interface defines a factory for <code>URL</code> stream
* protocol handlers.
* <p>
* It is used by the <code>URL</code> class to create a
* <code>URLStreamHandler</code> for a specific protocol.
*
* @author Arthur van Hoff
* @version 1.8, 01/25/97
* @see java.net.URL
* @see java.net.URLStreamHandler
* @since JDK1.0
*/
public interface URLStreamHandlerFactory {
/**
* Creates a new <code>URLStreamHandler</code> instance with the specified
* protocol.
*
* @param protocol the protocol ("<code>ftp</code>",
* "<code>http</code>", "<code>nntp</code>", etc.).
* @return a <code>URLStreamHandler</code> for the specific protocol.
* @see java.io.URLStreamHandler
* @since JDK1.0
*/
URLStreamHandler createURLStreamHandler(String protocol);
}