java.net

Interface ContentHandlerFactory

public interface ContentHandlerFactory

This interface maps MIME types to ContentHandler objects. It consists of one method that, when passed a MIME type, returns a handler for that type.
Method Summary
ContentHandlercreateContentHandler(String mimeType)
This method is passed a MIME type as a string and is responsible for returning the appropriate ContentHandler object.

Method Detail

createContentHandler

public ContentHandler createContentHandler(String mimeType)
This method is passed a MIME type as a string and is responsible for returning the appropriate ContentHandler object.

Parameters: mimeType The MIME type to map to a ContentHandler

Returns: The ContentHandler for the passed in MIME type