org.apache.commons.vfs.util
Class MonitorOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by java.io.BufferedOutputStream
              extended by org.apache.commons.vfs.util.MonitorOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class MonitorOutputStream
extends java.io.BufferedOutputStream

An OutputStream that provides buffering and end-of-stream monitoring.

Version:
$Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Wed, 29 Nov 2006) $
Author:
Adam Murdoch

Field Summary
 
Fields inherited from class java.io.BufferedOutputStream
buf, count
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
MonitorOutputStream(java.io.OutputStream out)
           
 
Method Summary
 void close()
          Closes this output stream.
protected  void onClose()
          Called after this stream is closed.
 
Methods inherited from class java.io.BufferedOutputStream
flush, write, write
 
Methods inherited from class java.io.FilterOutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitorOutputStream

public MonitorOutputStream(java.io.OutputStream out)
Method Detail

close

public void close()
           throws java.io.IOException
Closes this output stream.

Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.FilterOutputStream
Throws:
java.io.IOException

onClose

protected void onClose()
                throws java.io.IOException
Called after this stream is closed. This implementation does nothing.

Throws:
java.io.IOException