java.lang.Object
java.io.OutputStream
org.jboss.logmanager.handlers.UninterruptibleOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
An output stream which is not interruptible.
- Author:
- David M. Lloyd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the stream uninterruptibly.voidflush()Flush the stream uninterruptibly.toString()Get the string representation of this stream.voidwrite(byte[] b, int off, int len) Write the given bytes uninterruptibly.voidwrite(int b) Write the given byte uninterruptibly.Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Constructor Details
-
UninterruptibleOutputStream
Construct a new instance.- Parameters:
out- the delegate stream
-
-
Method Details
-
write
Write the given byte uninterruptibly.- Specified by:
writein classOutputStream- Parameters:
b- the byte to write- Throws:
IOException- if an error occurs
-
write
Write the given bytes uninterruptibly.- Overrides:
writein classOutputStream- Parameters:
b- the bytes to writeoff- the offset into the arraylen- the length of the array to write- Throws:
IOException- if an error occurs
-
flush
Flush the stream uninterruptibly.- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException- if an error occurs
-
close
Close the stream uninterruptibly.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException- if an error occurs
-
toString
Get the string representation of this stream.
-