JBoss Log Manager 1.3.2.Final-redhat-1

org.jboss.logmanager.handlers
Class UninterruptibleOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by org.jboss.logmanager.handlers.UninterruptibleOutputStream
All Implemented Interfaces:
Closeable, Flushable

public final class UninterruptibleOutputStream
extends FilterOutputStream

An output stream which is not interruptible.

Author:
David M. Lloyd

Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
UninterruptibleOutputStream(OutputStream out)
          Construct a new instance.
 
Method Summary
 void close()
          Close the stream uninterruptibly.
 void flush()
          Flush the stream uninterruptibly.
 String 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.FilterOutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 IOException
Write the given byte uninterruptibly.

Overrides:
write in class FilterOutputStream
Parameters:
b - the byte to write
Throws:
IOException - if an error occurs

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Write the given bytes uninterruptibly.

Overrides:
write in class FilterOutputStream
Parameters:
b - the bytes to write
off - the offset into the array
len - the length of the array to write
Throws:
IOException - if an error occurs

flush

public void flush()
           throws IOException
Flush the stream uninterruptibly.

Specified by:
flush in interface Flushable
Overrides:
flush in class FilterOutputStream
Throws:
IOException - if an error occurs

close

public void close()
           throws IOException
Close the stream uninterruptibly.

Specified by:
close in interface Closeable
Overrides:
close in class FilterOutputStream
Throws:
IOException - if an error occurs

toString

public String toString()
Get the string representation of this stream.

Overrides:
toString in class Object
Returns:
the string

JBoss Log Manager 1.3.2.Final-redhat-1

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.