org.apache.commons.vfs2.util
public class MonitorOutputStream extends java.io.BufferedOutputStream
Constructor and Description |
---|
MonitorOutputStream(java.io.OutputStream out) |
Modifier and Type | Method and Description |
---|---|
protected void |
assertOpen()
check if file is still open.
|
void |
close()
Closes this output stream.
|
void |
flush() |
protected void |
onClose()
Called after this stream is closed.
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.FilterOutputStream
java.io.IOException
- if an error occurs.public void write(int b) throws java.io.IOException
write
in class java.io.BufferedOutputStream
b
- The character to write.java.io.IOException
- if an error occurs.public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.BufferedOutputStream
b
- The byte array.off
- The offset into the array.len
- The number of bytes to write.java.io.IOException
- if an error occurs.public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.BufferedOutputStream
java.io.IOException
- if an error occurs.public void write(byte[] b) throws java.io.IOException
write
in class java.io.FilterOutputStream
b
- The byte array.java.io.IOException
- if an error occurs.protected void assertOpen() throws FileSystemException
FileSystemException
- if an error occurs.protected void onClose() throws java.io.IOException
java.io.IOException
- if an error occurs.Copyright © 2002-2016 The Apache Software Foundation. All Rights Reserved.