/*
 * Copyright (c) 1995, 1999, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 */
package java.net;
/**
 * This interface defines a factory for URL stream
 * protocol handlers.
 * 
 * It is used by the URL class to create a
 * URLStreamHandler for a specific protocol.
 *
 * @author  Arthur van Hoff
 * @see     java.net.URL
 * @see     java.net.URLStreamHandler
 * @since   JDK1.0
 */
public interface URLStreamHandlerFactory {
    /**
     * Creates a new URLStreamHandler instance with the specified
     * protocol.
     *
     * @param   protocol   the protocol ("ftp",
     *                     "http", "nntp", etc.).
     * @return  a URLStreamHandler for the specific protocol.
     * @see     java.net.URLStreamHandler
     */
    URLStreamHandler createURLStreamHandler(String protocol);
}