Package java.net Previous
Previous
Java API
Java API
Index
Index
Next
Next

Interface ContentHandlerFactory

Methods

public  interface  java.net.ContentHandlerFactory
{
        // Methods
    public abstract ContentHandler	
        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 .

This interface is used by the URLStreamHandler class 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.

Return Value:

Returns a new ContentHandler to read an object from a URL-Stream-Handler .

ParameterDescription
mimetype the MIME type for which a content handler is desired



© 1996 Sun Microsystems, Inc. All rights reserved.