|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.activation Interface DataContentHandlerFactory
public interface DataContentHandlerFactory
此接口定义了
DataContentHandler
的工厂。此接口的实现应该将 MIME 类型映射到 ContentHandler 的实例中。类实现此接口的设计模式与 java.net.URL
中使用的 ContentHandler 机制相同。
This interface defines a factory for DataContentHandlers
. An
implementation of this interface should map a MIME type into an
instance of DataContentHandler. The design pattern for classes implementing
this interface is the same as for the ContentHandler mechanism used in
java.net.URL
.
Method Summary | |
---|---|
DataContentHandler |
createDataContentHandler(String mimeType)
Creates a new DataContentHandler object for the MIME type. |
Method Detail |
---|
public DataContentHandler
createDataContentHandler(String mimeType)
针对 MIME 类型创建一个新的 DataContentHandler 对象。
mimeType | 要为其创建 DataContentHandler 的 MIME 类型。 |
return |
新的 DataContentHandler ;如果不存在,则返回 null。
|
createDataContentHandler
DataContentHandler createDataContentHandler(String mimeType)
- Creates a new DataContentHandler object for the MIME type.
- Parameters:
mimeType
- the MIME type to create the DataContentHandler for.- Returns:
- The new
DataContentHandler
, or null if none are found.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!