javax.media.protocol
Class URLDataSource
java.lang.Object
javax.media.protocol.DataSource
javax.media.protocol.PullDataSource
javax.media.protocol.URLDataSource
- All Implemented Interfaces:
- Duration, Controls
public class URLDataSource
- extends PullDataSource
URLDataSource
public URLDataSource(URL url)
throws IOException
- Throws:
IOException
getStreams
public PullSourceStream[] getStreams()
- Specified by:
getStreams
in class PullDataSource
connect
public void connect()
throws IOException
- Specified by:
connect
in class DataSource
- Throws:
IOException
getContentType
public String getContentType()
- Specified by:
getContentType
in class DataSource
disconnect
public void disconnect()
- Specified by:
disconnect
in class DataSource
start
public void start()
throws IOException
- Specified by:
start
in class DataSource
- Throws:
IOException
stop
public void stop()
throws IOException
- Specified by:
stop
in class DataSource
- Throws:
IOException
getDuration
public Time getDuration()
getControls
public Object[] getControls()
getControl
public Object getControl(String controlName)