Package java.net |
![]() Previous |
![]() Java API |
![]() Index |
![]() Next |
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.
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 .
Parameter Description mimetype the MIME type for which a content handler is desired
© 1996 Sun Microsystems, Inc. All rights reserved.