All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax.media.datasink.DataSinkEvent Maven / Gradle / Ivy

There is a newer version: 1.0.2-jitsi
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy