| java.io.BufferedOutputStream org.apache.commons.vfs.util.MonitorOutputStream
MonitorOutputStream | public class MonitorOutputStream extends BufferedOutputStream (Code) | | An OutputStream that provides buffering and end-of-stream monitoring.
author: Adam Murdoch version: $Revision: 520065 $ $Date: 2007-03-19 12:41:43 -0700 (Mon, 19 Mar 2007) $ |
Method Summary | |
protected void | assertOpen() check if file is still open. | public void | close() Closes this output stream. | public synchronized void | flush() | protected void | onClose() Called after this stream is closed. | public synchronized void | write(int b) | public synchronized void | write(byte b, int off, int len) | public void | write(byte b) |
assertOpen | protected void assertOpen() throws FileSystemException(Code) | | check if file is still open.
This is a workaround for an oddidy with javas BufferedOutputStream where you can write to
even if the stream has been closed
|
onClose | protected void onClose() throws IOException(Code) | | Called after this stream is closed. This implementation does nothing.
|
write | public synchronized void write(byte b, int off, int len) throws IOException(Code) | | |
|
|