Package org.jboss.logmanager.handlers
Class UninterruptibleOutputStream
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 TypeMethodDescriptionvoid
close()
Close the stream uninterruptibly.void
flush()
Flush the stream uninterruptibly.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.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:
write
in classOutputStream
- Parameters:
b
- the byte to write- Throws:
IOException
- if an error occurs
-
write
Write the given bytes uninterruptibly.- Overrides:
write
in 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:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
- if an error occurs
-
close
Close the stream uninterruptibly.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
- if an error occurs
-
toString
Get the string representation of this stream.
-