01: package uk.org.ponder.streamutil;
02:
03: import java.io.IOException;
04:
05: /** This invaluable interface allows stream classes to make a specified callback
06: * when they are closed. It is used by wrapper stream classes such as TrackerOutputStream,
07: * TrackerInputStream, RandomAccessRead and RandomAccessWrite.
08: */
09:
10: public interface StreamClosedCallback {
11: /** Report that a stream has been closed.
12: * @param closedstream The stream that is reporting its closure.
13: * @exception IOException if an I/O error occurs.
14: */
15: public void streamClosed(Object closedstream) throws IOException;
16: }
|