public class DataSource extends PullDataSource implements SourceCloneable
Modifier and Type | Field and Description |
---|---|
protected net.sf.fmj.media.protocol.httpauth.DataSource.URLSourceStream[] |
sources |
DURATION_UNBOUNDED, DURATION_UNKNOWN
Constructor and Description |
---|
DataSource() |
DataSource(java.net.URL url) |
Modifier and Type | Method and Description |
---|---|
void |
connect() |
DataSource |
createClone()
Based on JMF testing, the clone is in the same state as the original (opened and connected if the original is), but at the beginning of the media, not whatever position the original is.
|
void |
disconnect() |
java.lang.String |
getContentType() |
java.lang.Object |
getControl(java.lang.String controlName) |
java.lang.Object[] |
getControls() |
Time |
getDuration() |
PullSourceStream[] |
getStreams() |
void |
start() |
void |
stop() |
getLocator, initCheck, setLocator
protected net.sf.fmj.media.protocol.httpauth.DataSource.URLSourceStream[] sources
public DataSource createClone()
SourceCloneable
createClone
in interface SourceCloneable
public PullSourceStream[] getStreams()
getStreams
in class PullDataSource
public void connect() throws java.io.IOException
connect
in class DataSource
java.io.IOException
public java.lang.String getContentType()
getContentType
in class DataSource
public void disconnect()
disconnect
in class DataSource
public void start() throws java.io.IOException
start
in class DataSource
java.io.IOException
public void stop() throws java.io.IOException
stop
in class DataSource
java.io.IOException
public Time getDuration()
getDuration
in interface Duration
getDuration
in class DataSource
public java.lang.Object[] getControls()
getControls
in interface Controls
getControls
in class DataSource
public java.lang.Object getControl(java.lang.String controlName)
getControl
in interface Controls
getControl
in class DataSource