后浪云鸿蒙OS教程:鸿蒙OS ContentHandlerFactory

树叶云

ContentHandlerFactory

public interface ContentHandlerFactory

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

URLStreamHandler 类使用此接口为 MIME 类型创建 ContentHandler。

方法总结

修饰符和类型方法描述
ContentHandlercreateContentHandler(String mimetype)创建一个新的 ContentHandler 以从 URLStreamHandler 读取对象。

方法详情

createContentHandler

ContentHandler createContentHandler(String mimetype)

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

参数:

参数名称参数描述
mimetype需要内容处理程序的 MIME 类型。

返回:

一个新的 ContentHandler 从 URLStreamHandler 读取对象。

文章来源网络,作者:运维,如若转载,请注明出处:https://shuyeidc.com/wp/192301.html<

(0)
运维的头像运维
上一篇2025-04-01 12:50
下一篇 2025-04-01 12:51

相关推荐

发表回复

您的邮箱地址不会被公开。必填项已用 * 标注