javax.media.protocol
Class DataSource

java.lang.Object
  extended by javax.media.protocol.DataSource
All Implemented Interfaces:
Controls, Duration
Direct Known Subclasses:
PullBufferDataSource, PullDataSource, PushBufferDataSource, PushDataSource

public abstract class DataSource
extends java.lang.Object
implements Controls, Duration

Standard JMF class -- see this class in the JMF Javadoc. Coding Complete.

Author:
Ken Larson

Field Summary
 
Fields inherited from interface javax.media.Duration
DURATION_UNBOUNDED, DURATION_UNKNOWN
 
Constructor Summary
DataSource()
           
DataSource(MediaLocator source)
           
 
Method Summary
abstract  void connect()
           
abstract  void disconnect()
           
abstract  java.lang.String getContentType()
           
abstract  java.lang.Object getControl(java.lang.String controlType)
           
abstract  java.lang.Object[] getControls()
           
abstract  Time getDuration()
           
 MediaLocator getLocator()
           
protected  void initCheck()
           
 void setLocator(MediaLocator source)
           
abstract  void start()
           
abstract  void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSource

public DataSource()

DataSource

public DataSource(MediaLocator source)
Method Detail

setLocator

public void setLocator(MediaLocator source)

getLocator

public MediaLocator getLocator()

initCheck

protected void initCheck()

getContentType

public abstract java.lang.String getContentType()

connect

public abstract void connect()
                      throws java.io.IOException
Throws:
java.io.IOException

disconnect

public abstract void disconnect()

start

public abstract void start()
                    throws java.io.IOException
Throws:
java.io.IOException

stop

public abstract void stop()
                   throws java.io.IOException
Throws:
java.io.IOException

getControl

public abstract java.lang.Object getControl(java.lang.String controlType)
Specified by:
getControl in interface Controls

getControls

public abstract java.lang.Object[] getControls()
Specified by:
getControls in interface Controls

getDuration

public abstract Time getDuration()
Specified by:
getDuration in interface Duration