javax.media.protocol
Interface SourceCloneable
- public interface SourceCloneable
An interface that a DataSource should implement if it needs to be
cloneable. To create
a cloneable DataSource, use Manager.createCloneableDataSource
.
- Since:
- JMF 2.0
- See Also:
DataSource
,
PushDataSource
,
PullDataSource
,
PushBufferDataSource
,
PullBufferDataSource
,
Manager.createCloneableDataSource(javax.media.protocol.DataSource)
Method Summary |
DataSource |
createClone()
Create a clone of the original DataSource that
provides a copy of the same data streams. |
createClone
public DataSource createClone()
- Create a clone of the original
DataSource
that
provides a copy of the same data streams. The clones generated
may or may not have the same properties of the original DataSource
depending on the implementation. Therefore, they should be
checked against the properties required for the application.
For example, the original DataSource
may be a "pull"
DataSource
(PullDataSource
or
PullBufferDataSource
). But the resulted clone may be the
equivalent "push" DataSource
. In that case, the
resulting "push" DataSource
will push data at the
same rate at which the original DataSource
is being
pulled.
- Returns:
- a clone of the DataSource, or null if a clone could not be
created.
Submit a bug or feature
Copyright 1999-2001 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.