Packages  This Package  Prev  Next  Index  

§4.12 Interface ContentHandlerFactory

public  interface  java.net.ContentHandlerFactory
{
        // Methods
    public abstract ContentHandler	§4.12.1
        createContentHandler(String  mimetype);
}
This interface defines a factory for content handlers. An implemention of this interface should map a MIME type into an instance of ContentHandler (I-§4.1).

This interface is used by the URLStreamHandler class (I-§4.11) to create a Content-Handler for a MIME type.


Methods

createContentHandler

public abstract ContentHandler
createContentHandler(String mimetype)
Creates a new ContentHandler to read an object from a URLStreamHandler.
Parameters:
mimetype - the MIME type for which a content handler is desired
Returns:
a new ContentHandler (I-§4.1) to read an object from a URL-Stream-Handler (I-§4.11).

Packages  This Package  Prev  Next  Index
Java API Document (HTML generated by dkramer on April 22, 1996)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to doug.kramer@sun.com