Package org.jboss.logmanager.handlers
Class UninterruptibleOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.jboss.logmanager.handlers.UninterruptibleOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public final class UninterruptibleOutputStream extends java.io.OutputStreamAn output stream which is not interruptible.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description UninterruptibleOutputStream(java.io.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.java.lang.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.
-
-
-
Method Detail
-
write
public void write(int b) throws java.io.IOExceptionWrite the given byte uninterruptibly.- Specified by:
writein classjava.io.OutputStream- Parameters:
b- the byte to write- Throws:
java.io.IOException- if an error occurs
-
write
public void write(byte[] b, int off, int len) throws java.io.IOExceptionWrite the given bytes uninterruptibly.- Overrides:
writein classjava.io.OutputStream- Parameters:
b- the bytes to writeoff- the offset into the arraylen- the length of the array to write- Throws:
java.io.IOException- if an error occurs
-
flush
public void flush() throws java.io.IOExceptionFlush the stream uninterruptibly.- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.OutputStream- Throws:
java.io.IOException- if an error occurs
-
close
public void close() throws java.io.IOExceptionClose the stream uninterruptibly.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.OutputStream- Throws:
java.io.IOException- if an error occurs
-
toString
public java.lang.String toString()
Get the string representation of this stream.- Overrides:
toStringin classjava.lang.Object- Returns:
- the string
-
-