public final class UninterruptibleOutputStream extends FilterOutputStream
out
Constructor and Description |
---|
UninterruptibleOutputStream(OutputStream out)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the stream uninterruptibly.
|
void |
flush()
Flush the stream uninterruptibly.
|
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.
|
write
public UninterruptibleOutputStream(OutputStream out)
out
- the delegate streampublic void write(int b) throws IOException
write
in class FilterOutputStream
b
- the byte to writeIOException
- if an error occurspublic void write(byte[] b, int off, int len) throws IOException
write
in class FilterOutputStream
b
- the bytes to writeoff
- the offset into the arraylen
- the length of the array to writeIOException
- if an error occurspublic void flush() throws IOException
flush
in interface Flushable
flush
in class FilterOutputStream
IOException
- if an error occurspublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterOutputStream
IOException
- if an error occursCopyright © 2018 JBoss by Red Hat. All rights reserved.