xsul.http_common
Class NotifyCloseOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byxsul.http_common.NotifyCloseOutputStream

public class NotifyCloseOutputStream
extends java.io.OutputStream

This is specialization of output stream that will notify observer when close() is called.

Version:
$Revision: 1.4 $
Author:
Aleksander Slominski

Constructor Summary
NotifyCloseOutputStream(java.io.OutputStream output, java.util.Observer observer)
           
 
Method Summary
 void close()
           
 java.lang.String toString()
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
flush, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotifyCloseOutputStream

public NotifyCloseOutputStream(java.io.OutputStream output,
                               java.util.Observer observer)
                        throws java.lang.IllegalArgumentException
Method Detail

write

public void write(int b)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

toString

public java.lang.String toString()


IU Extreme! Lab (http://www.extreme.indiana.edu)