org.apache.commons.vfs.util
Class MonitorOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.FilterOutputStream
          extended byjava.io.BufferedOutputStream
              extended byorg.apache.commons.vfs.util.MonitorOutputStream

public class MonitorOutputStream
extends BufferedOutputStream

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

Version:
$Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Mi, 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(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(OutputStream out)
Method Detail

close

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

Throws:
IOException

onClose

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

Throws:
IOException


Copyright © 2002-2006 The Apache Software Foundation. All Rights Reserved.