public class MonitorOutputStream extends BufferedOutputStream
buf, count
out
Constructor and Description |
---|
MonitorOutputStream(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 MonitorOutputStream(OutputStream out)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterOutputStream
IOException
- if an error occurs.public void write(int b) throws IOException
write
in class BufferedOutputStream
b
- The character to write.IOException
- if an error occurs.public void write(byte[] b, int off, int len) throws IOException
write
in class BufferedOutputStream
b
- The byte array.off
- The offset into the array.len
- The number of bytes to write.IOException
- if an error occurs.public void flush() throws IOException
flush
in interface Flushable
flush
in class BufferedOutputStream
IOException
- if an error occurs.public void write(byte[] b) throws IOException
write
in class FilterOutputStream
b
- The byte array.IOException
- if an error occurs.protected void assertOpen() throws FileSystemException
FileSystemException
- if an error occurs.protected void onClose() throws IOException
IOException
- if an error occurs.Copyright © 2002-2016 The Apache Software Foundation. All Rights Reserved.