javax.media.protocol.DataSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fmj Show documentation
Show all versions of fmj Show documentation
Freedom for Media in Java
The newest version!
package javax.media.protocol;
import javax.media.*;
/**
* Standard JMF class -- see this class in the JMF Javadoc. Coding Complete.
*
* @author Ken Larson
*
*/
public abstract class DataSource implements Controls, Duration
{
private MediaLocator locator;
public DataSource()
{
super();
}
public DataSource(MediaLocator source)
{
this.locator = source;
}
public abstract void connect() throws java.io.IOException;
public abstract void disconnect();
public abstract String getContentType();
public MediaLocator getLocator()
{
return locator;
}
protected void initCheck()
{
if (locator == null)
throw new Error("Uninitialized DataSource error."); // JavaDoc
// claims this
// should be
// UninitializedError(),
// but this is
// not the
// case.;
}
public void setLocator(MediaLocator source)
{
this.locator = source;
}
public abstract void start() throws java.io.IOException;
public abstract void stop() throws java.io.IOException;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy