net.sf.fmj.media
Class MergingPullBufferDataSource
java.lang.Object
javax.media.protocol.DataSource
javax.media.protocol.PullBufferDataSource
net.sf.fmj.media.MergingPullBufferDataSource
- All Implemented Interfaces:
- Controls, Duration
- Direct Known Subclasses:
- MergingCaptureDevicePullBufferDataSource
public class MergingPullBufferDataSource
- extends PullBufferDataSource
Merges multiple MergingPullBufferDataSource
.
- Author:
- Ken Larson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sources
protected final java.util.List<PullBufferDataSource> sources
MergingPullBufferDataSource
public MergingPullBufferDataSource(java.util.List<PullBufferDataSource> sources)
getStreams
public PullBufferStream[] getStreams()
- Specified by:
getStreams
in class PullBufferDataSource
connect
public void connect()
throws java.io.IOException
- Specified by:
connect
in class DataSource
- Throws:
java.io.IOException
disconnect
public void disconnect()
- Specified by:
disconnect
in class DataSource
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType
in class DataSource
getControl
public java.lang.Object getControl(java.lang.String controlType)
- Specified by:
getControl
in interface Controls
- Specified by:
getControl
in class DataSource
getControls
public java.lang.Object[] getControls()
- Specified by:
getControls
in interface Controls
- Specified by:
getControls
in class DataSource
getDuration
public Time getDuration()
- Specified by:
getDuration
in interface Duration
- Specified by:
getDuration
in class DataSource
start
public void start()
throws java.io.IOException
- Specified by:
start
in class DataSource
- Throws:
java.io.IOException
stop
public void stop()
throws java.io.IOException
- Specified by:
stop
in class DataSource
- Throws:
java.io.IOException