javax.media
Interface DataSinkProxy


public abstract interface DataSinkProxy
extends MediaProxy

A datasink proxy is a MediaProxy and is part of the factory mechanism to create a DataSink. It provides the content type of a datasink based on its destination media locator. The destination media locator will typically contain information like the file extension which will be used by the DataSinkProxy to deduce the content type. The media locator could have any format as long as its DataSinkProxy is capable of parsing the media locator and returning its type.

Since:
JMF 2.0

Method Summary
 java.lang.String getContentType(MediaLocator destination)
          Return the content type of the datasink to be created for this medialocator.
 
Methods inherited from interface javax.media.MediaProxy
getDataSource
 
Methods inherited from interface javax.media.MediaHandler
setSource
 

Method Detail

getContentType

public java.lang.String getContentType(MediaLocator destination)
Return the content type of the datasink to be created for this medialocator. Return null if the content type cannot be identified from the MediaLocator.
Parameters:
destination - The destination MediaLocator which the Manager uses to create the DataSink.