Top Description Fields Constructors Methods
org.jboss.logmanager.handlers

public final Class UninterruptibleOutputStream

extends OutputStream
Class Inheritance
Static Imports
java.lang.Thread.currentThread, .Thread.interrupted

An output stream which is not interruptible.
Author
David M. Lloyd

Field Summary

Modifier and TypeField and Description
private final OutputStream

Constructor Summary

AccessConstructor and Description
public
UninterruptibleOutputStream(final OutputStream
the delegate stream
out
)

Construct a new instance.

Method Summary

Modifier and TypeMethod and Description
public void
close()

Overrides java.io.OutputStream.close.

Implements java.io.Closeable.close.

Close the stream uninterruptibly.

public void
flush()

Overrides java.io.OutputStream.flush.

Implements java.io.Flushable.flush.

Flush the stream uninterruptibly.

public String

Returns:

the string
toString
()

Overrides java.lang.Object.toString.

Get the string representation of this stream.

public void
write(final int
the byte to write
b
)

Implements abstract java.io.OutputStream.write.

Write the given byte uninterruptibly.

public void
write(final byte[]
the bytes to write
b
,
int
the offset into the array
off
,
int
the length of the array to write
len
)

Overrides java.io.OutputStream.write.

Write the given bytes uninterruptibly.

Inherited from java.io.OutputStream:
nullOutputStreamwrite

Field Detail

outback to summary
private final OutputStream out

Constructor Detail

UninterruptibleOutputStreamback to summary
public UninterruptibleOutputStream(final OutputStream out)

Construct a new instance.

Parameters
out:OutputStream

the delegate stream

Method Detail

closeback to summary
public void close() throws IOException

Overrides java.io.OutputStream.close.

Implements java.io.Closeable.close.

Close the stream uninterruptibly.

Exceptions
IOException:
if an error occurs
flushback to summary
public void flush() throws IOException

Overrides java.io.OutputStream.flush.

Implements java.io.Flushable.flush.

Flush the stream uninterruptibly.

Exceptions
IOException:
if an error occurs
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Get the string representation of this stream.

Returns:String

the string

writeback to summary
public void write(final int b) throws IOException

Implements abstract java.io.OutputStream.write.

Write the given byte uninterruptibly.

Parameters
b:int

the byte to write

Exceptions
IOException:
if an error occurs
writeback to summary
public void write(final byte[] b, int off, int len) throws IOException

Overrides java.io.OutputStream.write.

Write the given bytes uninterruptibly.

Parameters
b:byte[]

the bytes to write

off:int

the offset into the array

len:int

the length of the array to write

Exceptions
IOException:
if an error occurs