home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 November / Chip_1998-11_cd.bin / tema / Cafe / main.bin / ContentHandlerFactory.java < prev    next >
Text File  |  1997-05-20  |  2KB  |  54 lines

  1. /*
  2.  * @(#)ContentHandlerFactory.java    1.3 97/01/25
  3.  * 
  4.  * Copyright (c) 1995, 1996 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the confidential and proprietary information of Sun
  7.  * Microsystems, Inc. ("Confidential Information").  You shall not
  8.  * disclose such Confidential Information and shall use it only in
  9.  * accordance with the terms of the license agreement you entered into
  10.  * with Sun.
  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
  15.  * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  16.  * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  17.  * THIS SOFTWARE OR ITS DERIVATIVES.
  18.  * 
  19.  * CopyrightVersion 1.1_beta
  20.  * 
  21.  */
  22.  
  23. package java.net;
  24.  
  25. /**
  26.  * This interface defines a factory for content handlers. An 
  27.  * implementation of this interface should map a MIME type into an 
  28.  * instance of <code>ContentHandler</code>. 
  29.  * <p>
  30.  * This interface is used by the <code>URLStreamHandler</code> class 
  31.  * to create a <code>ContentHandler</code> for a MIME type. 
  32.  *
  33.  * @author  James Gosling
  34.  * @version 1.3, 01/25/97
  35.  * @see     java.net.ContentHandler
  36.  * @see     java.net.URLStreamHandler
  37.  * @since   JDK1.0
  38.  */
  39. public interface ContentHandlerFactory {
  40.     /**
  41.      * Creates a new <code>ContentHandler</code> to read an object from 
  42.      * a <code>URLStreamHandler</code>. 
  43.      *
  44.      * @param   mimetype   the MIME type for which a content handler is desired.
  45.  
  46.      * @return  a new <code>ContentHandler</code> to read an object from a
  47.      *          <code>URLStreamHandler</code>.
  48.      * @see     java.net.ContentHandler
  49.      * @see     java.net.URLStreamHandler
  50.      * @since   JDK1.0
  51.      */
  52.     ContentHandler createContentHandler(String mimetype);
  53. }
  54.