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

Field Summary
static int DECODER_OVERFLOW
           
static int DECODER_SYNC_ERROR
           
static int STREAM_END
           
static int STREAM_OVERFLOW
           
static int STREAM_START
           
static int STREAM_UNDERFLOW
           
 
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
 

Field Detail

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
Constructor Detail

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 event
condition - The condition variable can correspond the to decoder overflow, sync error, stream start or stop
Throws:
IllegalDecoderMediaEventsException - thrown an Illegal Decoder Event is thrown
Method Detail

getCondition

public int getCondition()
The obtained condition can correspond to decoder overflow, sync error, stream underflow, stream overflow, stream start or stream end