Package org.apache.commons.vfs.util
Class MonitorOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- java.io.BufferedOutputStream
-
- org.apache.commons.vfs.util.MonitorOutputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
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
-
-
Constructor Summary
Constructors Constructor Description MonitorOutputStream(java.io.OutputStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes this output stream.protected void
onClose()
Called after this stream is closed.
-
-
-
Method Detail
-
close
public void close() throws java.io.IOException
Closes this output stream.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.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
-
-