Top Description Methods
java.net

public Interface ContentHandlerFactory


This interface defines a factory for content handlers. An implementation of this interface should map a MIME type into an instance of ContentHandler.

This interface is used by the URLStreamHandler class to create a ContentHandler for a MIME type.

Author
James Gosling
Since
1.0
See Also
java.net.ContentHandler, java.net.URLStreamHandler

Method Summary

Modifier and TypeMethod and Description
public ContentHandler

Returns:

a new ContentHandler to read an object from a URLStreamHandler.
createContentHandler
(String
the MIME type for which a content handler is desired.
mimetype
)

Creates a new ContentHandler to read an object from a URLStreamHandler.

Method Detail

createContentHandlerback to summary
public ContentHandler createContentHandler(String mimetype)

Creates a new ContentHandler to read an object from a URLStreamHandler.

Parameters
mimetype:String

the MIME type for which a content handler is desired.

Returns:ContentHandler

a new ContentHandler to read an object from a URLStreamHandler.

See Also
java.net.ContentHandler, java.net.URLStreamHandler