01: // HttpStreamObserver.java
02: // $Id: HttpStreamObserver.java,v 1.4 2000/08/16 21:38:01 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.http;
07:
08: import java.io.InputStream;
09:
10: public interface HttpStreamObserver {
11:
12: /**
13: * The end of the stream has been reached.
14: * @param in The stream that has reached enf od file.
15: */
16:
17: public void notifyEOF(InputStream in);
18:
19: /**
20: * The stream has been closed.
21: * @param in The stream that has been closed.
22: */
23:
24: public void notifyClose(InputStream in);
25:
26: /**
27: * The stream doesn't support monitoring.
28: * This happens for HTTP connections that don't provide any infos
29: * about their length.
30: * @param in The stream on which an IO exception occured.
31: */
32:
33: public void notifyFailure(InputStream in);
34: }
|