home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / sybase / starbuck / java.z / URLStreamHandlerFactory.java < prev    next >
Text File  |  1996-05-03  |  1KB  |  38 lines

  1. /*
  2.  * @(#)URLStreamHandlerFactory.java    1.6 95/09/08
  3.  * 
  4.  * Copyright (c) 1995 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * Permission to use, copy, modify, and distribute this software and its
  7.  * documentation for NON-COMMERCIAL purposes and without fee is hereby
  8.  * granted provided that this copyright notice appears in all copies. Please
  9.  * refer to the file "copyright.html" for further important copyright and
  10.  * licensing information.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
  15.  * OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY
  16.  * LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR
  17.  * ITS DERIVATIVES.
  18.  */
  19.  
  20. package java.net;
  21.  
  22.  
  23. /**
  24.  * This interface defines a factory for URLStreamHandler instances.  It is used by the
  25.  * URL class to create URLStreamHandlers for various streams.
  26.  * 
  27.  * @version 1.6, 08 Sep 1995
  28.  * @author     Arthur van Hoff
  29.  */
  30. public interface URLStreamHandlerFactory {
  31.    
  32.     /**
  33.      * Creates a new URLStreamHandler instance with the specified protocol.
  34.      * @param protocol the protocol to use (ftp, http, nntp, etc.)
  35.      */
  36.     URLStreamHandler createURLStreamHandler(String protocol);
  37. }
  38.