javax.media
接口 DataSinkProxy
- 所有超级接口:
- MediaHandler, MediaProxy
public interface DataSinkProxy
- extends MediaProxy
A DataSinkProxy
is a MediaProxy
that provides
the content type of the DataSink
to be created based on its
destination MediaLocator
.
DataSinkProxy
is part of the
factory mechanism for creating a DataSink
.
- 从以下版本开始:
- JMF 2.0
方法摘要 |
java.lang.String |
getContentType(MediaLocator destination)
Gets the content type of the DataSink to be created for
the specified destination MediaLocator . |
getContentType
java.lang.String getContentType(MediaLocator destination)
- Gets the content type of the
DataSink
to be created for
the specified destination MediaLocator
.
A DataSink
destination MediaLocator
typically contains information such as the file extension, which
the DataSinkProxy
uses to deduce the content type.
The specified MediaLocator
can have any format
as long as the DataSinkProxy
is
capable of parsing the locator and returning its type.
- 参数:
destination
- The destination MediaLocator
for the
DataSink
to be created.