public class OutputStreamWithExceptionControl extends OutputStream
| Constructor and Description |
|---|
OutputStreamWithExceptionControl(OutputStream delegate)
Creates a new stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
fail_once(IOException e)
The next read will fail with an
IOException. |
void |
write(int b) |
flush, write, writepublic OutputStreamWithExceptionControl(OutputStream delegate)
delegate - the stream to delegate topublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void fail_once(IOException e)
IOException.e - the exception to failCopyright © 2015. All rights reserved.