Closeable
, Flushable
, AutoCloseable
public final class UninterruptibleOutputStream extends OutputStream
Constructor | Description |
---|---|
UninterruptibleOutputStream(OutputStream out) |
Construct a new instance.
|
Modifier and Type | Method | 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
write
public UninterruptibleOutputStream(OutputStream out)
out
- the delegate streampublic void write(int b) throws IOException
write
in class OutputStream
b
- the byte to writeIOException
- if an error occurspublic void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
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 OutputStream
IOException
- if an error occurspublic void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
close
in class OutputStream
IOException
- if an error occursCopyright © 2018. All rights reserved.