org.iso.mpeg.mpegj.resource
Class MPDecoderMediaEvents
java.lang.Object
|
+--java.util.EventObject
|
+--org.iso.mpeg.mpegj.resource.MPDecoderMediaEvents
- public class MPDecoderMediaEvents
- extends java.util.EventObject
An event object that is given to an MPDecoderMediaListener.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
MPDecoderMediaEvents(java.lang.Object source,
int condition)
Construct an event object with condition. |
Method Summary |
int |
getCondition()
The obtained condition can correspond to decoder overflow, sync error,
stream underflow, stream overflow, stream start or stream end |
Methods inherited from class java.util.EventObject |
getSource,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
DECODER_OVERFLOW
public static final int DECODER_OVERFLOW
DECODER_SYNC_ERROR
public static final int DECODER_SYNC_ERROR
STREAM_UNDERFLOW
public static final int STREAM_UNDERFLOW
STREAM_OVERFLOW
public static final int STREAM_OVERFLOW
STREAM_START
public static final int STREAM_START
STREAM_END
public static final int STREAM_END
MPDecoderMediaEvents
public MPDecoderMediaEvents(java.lang.Object source,
int condition)
throws IllegalDecoderMediaEventsException
- Construct an event object with condition.
condition can be decoder overflow, sync error, or end of decode,
otherwise throws exception
- Parameters:
source
- the source of the eventcondition
- The condition variable can correspond the to decoder overflow, sync error,
stream start or stop- Throws:
- IllegalDecoderMediaEventsException - thrown an Illegal Decoder Event is thrown
getCondition
public int getCondition()
- The obtained condition can correspond to decoder overflow, sync error,
stream underflow, stream overflow, stream start or stream end