javax.media.datasink
Class DataSinkEvent
java.lang.Object
|
+--java.util.EventObject
|
+--javax.media.MediaEvent
|
+--javax.media.datasink.DataSinkEvent
- Direct Known Subclasses:
- DataSinkErrorEvent, EndOfStreamEvent
- public class DataSinkEvent
- extends MediaEvent
DataSinkEvent
is the base class for events generated
by the DataSink
.
These events are used by DataSinkListener
.
- Since:
- JMF 2.0
- See Also:
DataSink
,
DataSinkListener
,
MediaEvent
, Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
DataSinkEvent(DataSink from)
Constructs a DataSinkEvent object for the specified DataSink. |
DataSinkEvent(DataSink from,
java.lang.String reason)
Constructs a DataSinkEvent object for the specified DataSink
and reason string. |
Method Summary |
DataSink |
getSourceDataSink()
Get the DataSink that posted this event. |
java.lang.String |
toString()
Returns the String representation of this event's values. |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
DataSinkEvent
public DataSinkEvent(DataSink from)
- Constructs a DataSinkEvent object for the specified DataSink.
DataSinkEvent
public DataSinkEvent(DataSink from,
java.lang.String reason)
- Constructs a DataSinkEvent object for the specified DataSink
and reason string.
getSourceDataSink
public DataSink getSourceDataSink()
- 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
).
- Returns:
- The
DataSink
that posted this event.
toString
public java.lang.String toString()
- Returns the String representation of this event's values.
- Overrides:
- toString in class java.util.EventObject
Submit a bug or feature
Copyright 1994-2004 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. See the Specification License for more details.
Sun, Sun Microsystems, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.