- java.lang.Object
-
- java.io.OutputStream
-
- org.jboss.logmanager.handlers.UninterruptibleOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public final class UninterruptibleOutputStream extends OutputStream
An output stream which is not interruptible.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description UninterruptibleOutputStream(OutputStream out)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the stream uninterruptibly.voidflush()Flush the stream uninterruptibly.StringtoString()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 Detail
-
UninterruptibleOutputStream
public UninterruptibleOutputStream(OutputStream out)
Construct a new instance.- Parameters:
out- the delegate stream
-
-
Method Detail
-
write
public void write(int b) throws IOExceptionWrite the given byte uninterruptibly.- Specified by:
writein classOutputStream- Parameters:
b- the byte to write- Throws:
IOException- if an error occurs
-
write
public void write(byte[] b, int off, int len) throws IOExceptionWrite 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
public void flush() throws IOExceptionFlush the stream uninterruptibly.- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException- if an error occurs
-
close
public void close() throws IOExceptionClose the stream uninterruptibly.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException- if an error occurs
-
-