import java.net.*;

/**
 * Creates SFPStreamHandler objects
 *
 * Note: This is a very simple factory.  For example, it does not attempt
 * to re-use SFPStreamHandler objects that have been disposed of.
 *
 * @version 1.0
 * @author  Prof. David Bernstein, James Madison University
 */
public class SFPStreamHandlerFactory implements URLStreamHandlerFactory
{


    /**
     * Create an appropriate URLStreamHandler
     *
     * @param protocol   The protocol to use
     * @return           The URLStreamHandler
     */
    public URLStreamHandler createURLStreamHandler(String protocol)
    {
	if (protocol.equalsIgnoreCase("sfp")) return (new SFPStreamHandler());
	else                                  return null;
    }

}
