javax.media
Interface DataSinkProxy
- All Superinterfaces:
- 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.
- Since:
- JMF 2.0
|
Method Summary |
java.lang.String |
getContentType(MediaLocator destination)
Gets the content type of the DataSink to be created for
the specified destination MediaLocator. |
getContentType
public 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.
- Parameters:
destination - The destination MediaLocator for the
DataSink to be created.