Most visited

Recently visited

Added in API level 1

ContentHandlerFactory

public interface ContentHandlerFactory

java.net.ContentHandlerFactory


该接口为内容处理程序定义了一个工厂。 此接口的实现应将MIME类型映射到ContentHandler的实例中。

该接口由 URLStreamHandler类用于为MIME类型创建 ContentHandler

也可以看看:

Summary

Public methods

abstract ContentHandler createContentHandler(String mimetype)

创建一个新的 ContentHandler从读取对象 URLStreamHandler

Public methods

createContentHandler

Added in API level 1
ContentHandler createContentHandler (String mimetype)

创建一个新的 ContentHandler从读取对象 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.

也可以看看:

Hooray!