Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR-927 (Maintenance Release)

javax.media
Class CachingControlEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byjavax.media.ControllerEvent
          extended byjavax.media.CachingControlEvent
All Implemented Interfaces:
MediaEvent, java.io.Serializable

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.

See Also:
Controller, ControllerListener, CachingControl, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CachingControlEvent(Controller from, CachingControl cacheControl, long progress)
          Construct a CachingControlEvent from the required elements.
 
Method Summary
 CachingControl getCachingControl()
          Get the CachingControl object that generated the event.
 long getContentProgress()
          Get the total number of bytes of media data that have been downloaded so far.
 
Methods inherited from class javax.media.ControllerEvent
getSource, getSourceController
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CachingControlEvent

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

Method Detail

getCachingControl

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

Returns:
The CachingControl object.

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.

JSR-927 (Maintenance Release)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 927 specification.