Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR-927 (Maintenance Release)

javax.media
Interface MediaProxy

All Superinterfaces:
MediaHandler

public interface MediaProxy
extends MediaHandler

MediaProxy is a MediaHandler which processes content from one DataSource, to produce another DataSource.

Typically, a MediaProxy reads a text configuration file that contains all of the information needed to make a connection to a server and obtain media data. To produce a Player from a MediaLocator referencing the configuration file, Manger:

See Also:
Manager

Method Summary
 DataSource getDataSource()
          Obtain the new DataSource.
 
Methods inherited from interface javax.media.MediaHandler
setSource
 

Method Detail

getDataSource

public DataSource getDataSource()
                         throws java.io.IOException,
                                NoDataSourceException
Obtain the new DataSource. The DataSource is already connected.

Returns:
the new DataSource for this content.
Throws:
java.io.IOException - Thrown when if there are IO problems in reading the the original or new DataSource.
NoDataSourceException - Thrown if this proxy can't produce a DataSource.

JSR-927 (Maintenance Release)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 927 specification.