public class BufferedOutputStreamWithCloseDetection extends BufferedOutputStream
Constructor and Description |
---|
BufferedOutputStreamWithCloseDetection(OutputStream out) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close only once.
|
void |
flush()
Don't flush empty buffer if already closed.
|
write, write
write
public BufferedOutputStreamWithCloseDetection(OutputStream out)
public void flush() throws IOException
flush
in interface Flushable
flush
in class BufferedOutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterOutputStream
IOException