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, writewritepublic BufferedOutputStreamWithCloseDetection(OutputStream out)
public void flush()
           throws IOException
flush in interface Flushableflush in class BufferedOutputStreamIOExceptionpublic void close()
           throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOException