01: // TeeMonitor.java
02: // $Id: TeeMonitor.java,v 1.8 2000/08/16 21:38:04 ylafon Exp $
03: // (c) COPYRIGHT MIT and INRIA, 1996.
04: // Please first read the full copyright statement in file COPYRIGHT.html
05:
06: package org.w3c.www.protocol.http.cache;
07:
08: public interface TeeMonitor {
09: /**
10: * Called when the Tee stream fails, it allows you to notify a listener
11: * of an error in the stream.
12: * @parameter the size received so far, an integer
13: */
14: public void notifyTeeFailure(int size);
15:
16: /**
17: * Called when the tee succeed, it allows you to notify a listener of the
18: * Tee that the download completed succesfully with a specific size
19: * @parameter the size received, an integer
20: */
21: public void notifyTeeSuccess(int size);
22: }
|