FileDocCategorySizeDatePackage
SourceCloneable.javaAPI DocJMF 2.1.1e1530Mon May 12 12:20:42 BST 2003javax.media.protocol

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.
see
DataSource
see
PushDataSource
see
PullDataSource
see
PushBufferDataSource
see
PullBufferDataSource
see
javax.media.Manager#createCloneableDataSource
since
JMF 2.0

Fields Summary
Constructors Summary
Methods Summary
public javax.media.protocol.DataSourcecreateClone()
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.

return
a clone of the DataSource, or null if a clone could not be created.