public final class UninterruptibleOutputStream
extends java.io.OutputStream
Modifier and Type | Field and Description |
---|---|
private java.io.OutputStream |
out |
Constructor and Description |
---|
UninterruptibleOutputStream(java.io.OutputStream out)
Construct a new instance.
|
Modifier and Type | Method and 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.OutputStream
b
- 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.OutputStream
b
- 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.Flushable
flush
in class java.io.OutputStream
java.io.IOException
- if an error occurspublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
- if an error occurspublic java.lang.String toString()
toString
in class java.lang.Object