javax.media.datasink.DataSinkEvent 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
package javax.media.datasink;
import javax.media.*;
/**
* Standard JMF class -- see this class in the JMF Javadoc. Complete.
*
* @author Ken Larson
*
*/
public class DataSinkEvent extends MediaEvent
{
private String message;
public DataSinkEvent(DataSink from)
{
super(from);
this.message = "";
}
public DataSinkEvent(DataSink from, String reason)
{
super(from);
this.message = reason;
}
public DataSink getSourceDataSink()
{
return (DataSink) getSource();
}
@Override
public String toString()
{
return DataSinkEvent.class.getName() + "[source=" + getSource()
+ "] message: " + message;
}
}