All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.media.CachingControlEvent

java.lang.Object
   |
   +----javax.media.ControllerEvent
           |
           +----javax.media.CachingControlEvent

public class CachingControlEvent
extends ControllerEvent
This event is generated by a Controller that supports the CachingControl interface. It is posted when the caching state changes.

Version:
1.10, 97/08/23.
See Also:
Controller, ControllerListener, CachingControl

Constructor Index

 o CachingControlEvent(Controller, CachingControl, long)
Construct a CachingControlEvent from the required elements.

Method Index

 o getCachingControl()
Get the CachingControl object that generated the event.
 o getContentProgress()
Get the total number of bytes of media data that have been downloaded so far.

Constructors

 o CachingControlEvent
 public CachingControlEvent(Controller from,
                            CachingControl cacheControl,
                            long progress)
Construct a CachingControlEvent from the required elements.

Methods

 o getCachingControl
 public CachingControl getCachingControl()
Get the CachingControl object that generated the event.

Returns:
The CachingControl object.
 o getContentProgress
 public long getContentProgress()
Get the total number of bytes of media data that have been downloaded so far.

Returns:
The number of bytes of media data downloaded.

All Packages  Class Hierarchy  This Package  Previous  Next  Index