FileDocCategorySizeDatePackage
DataSinkEvent.javaAPI DocJMF 2.1.1e1593Mon May 12 12:20:42 BST 2003javax.media.datasink

DataSinkEvent

public class DataSinkEvent extends MediaEvent
DataSinkEvent is the base class for events generated by the DataSink. These events are used by DataSinkListener.
see
javax.media.DataSink
see
DataSinkListener
see
javax.media.MediaEvent
version
1.7, 02/08/21
since
JMF 2.0

Fields Summary
private String
message
Constructors Summary
public DataSinkEvent(DataSink from)
Constructs a DataSinkEvent object for the specified DataSink.

	super(from);
	message = new String("");
    
public DataSinkEvent(DataSink from, String reason)
Constructs a DataSinkEvent object for the specified DataSink and reason string.

	super(from);
	message = new String(reason);
    
Methods Summary
public javax.media.DataSinkgetSourceDataSink()
Get the DataSink that posted this event. The returned DataSink has at least one active listener. (The addDataSinkListener method has been called on the DataSink).

return
The DataSink that posted this event.

	return (DataSink) getSource();
    
public java.lang.StringtoString()
Returns the String representation of this event's values.

	return getClass().getName() + "[source=" + getSource() + "] message: " + message;