java.io.Closeable, java.io.Flushable, java.lang.AutoCloseablepublic final class UninterruptibleOutputStream
extends java.io.OutputStream
| Constructor | Description |
|---|---|
UninterruptibleOutputStream(java.io.OutputStream out) |
Construct a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Close the stream uninterruptibly.
|
void |
flush() |
Flush the stream uninterruptibly.
|
java.lang.String |
toString() |
Get the string representation of this stream.
|
void |
write(byte[] b,
int off,
int len) |
Write the given bytes uninterruptibly.
|
void |
write(int b) |
Write the given byte uninterruptibly.
|
public UninterruptibleOutputStream(java.io.OutputStream out)
out - the delegate streampublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamb - the byte to writejava.io.IOException - if an error occurspublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamb - the bytes to writeoff - the offset into the arraylen - the length of the array to writejava.io.IOException - if an error occurspublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException - if an error occurspublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOException - if an error occurspublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018. All rights reserved.