javax.media
Interface DataSinkProxy
- 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.
Submit a bug or feature
Copyright 1994-2004 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. See the Specification License for more details.
Sun, Sun Microsystems, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.