javax.media
Interface MediaHandler
- All Known Subinterfaces:
- DataSink, DataSinkProxy, Demultiplexer, MediaProxy, Player, Processor
- public interface MediaHandler
MediaHandler
is the base interface for objects
that read and manage media content delivered from a
DataSource
.
There are currently three supported types of MediaHandler/code>:
Player
, MediaProxy
and DataSink
.
Method Summary |
void |
setSource(DataSource source)
Sets the media source this MediaHandler
should use to obtain content. |
setSource
public void setSource(DataSource source)
throws java.io.IOException,
IncompatibleSourceException
- Sets the media source this
MediaHandler
should use to obtain content.
- Parameters:
source
- The DataSource
used
by this MediaHandler
.- Throws:
- java.io.IOException - Thrown if there is an error
using the
DataSource
- IncompatibleSourceException - Thrown if
this
MediaHandler
cannot make use
of the DataSource
.
Submit a bug or feature
Copyright 1999-2000 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.