FileDocCategorySizeDatePackage
CachingControlEvent.javaAPI DocJMF 2.1.1e1527Mon May 12 12:20:36 BST 2003javax.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.
see
Controller
see
ControllerListener
see
CachingControl
version
1.2, 02/08/21.

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

	super(from);
	control = cacheControl;
	this.progress = progress;
    
Methods Summary
public javax.media.CachingControlgetCachingControl()
Get the CachingControl object that generated the event.

return
The CachingControl object.

	return control;
    
public longgetContentProgress()
Get the total number of bytes of media data that have been downloaded so far.

return
The number of bytes of media data downloaded.

	return progress;
    
public java.lang.StringtoString()
Returns the String representation of this event's values.

	return getClass().getName() + "[source=" + eventSrc + 
	    ",cachingControl=" + control + 
	    ",progress=" + progress + "]";