FileDocCategorySizeDatePackage
DataSinkProxy.javaAPI DocJMF 2.1.1e1542Mon May 12 12:20:36 BST 2003javax.media

DataSinkProxy

public abstract interface DataSinkProxy implements 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

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetContentType(javax.media.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.

param
destination The destination MediaLocator for the DataSink to be created.
returns
A String that contains content type of the DataSink or null if the content type cannot be determined from the specified MediaLocator.