Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.core.io.util
Class OutputStreamDecorator

java.lang.Object
  extended by java.io.OutputStream
      extended by eu.esdihumboldt.hale.common.core.io.util.OutputStreamDecorator
All Implemented Interfaces:
Closeable, Flushable

public class OutputStreamDecorator
extends OutputStream

Decorator for an OutputStream. Alternative to FilterOutputStream that calls the same methods on the decoratee that were actually called.

Author:
Simon Templer

Constructor Summary
OutputStreamDecorator(OutputStream out)
          Creates a decorator for an output stream
 
Method Summary
 void close()
           
 void flush()
           
 String toString()
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OutputStreamDecorator

public OutputStreamDecorator(OutputStream out)
Creates a decorator for an output stream

Parameters:
out - the output stream
Method Detail

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class OutputStream
Throws:
IOException
See Also:
OutputStream.close()

flush

public void flush()
           throws IOException
Specified by:
flush in interface Flushable
Overrides:
flush in class OutputStream
Throws:
IOException
See Also:
OutputStream.flush()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class OutputStream
Throws:
IOException
See Also:
OutputStream.write(byte[], int, int)

write

public void write(byte[] b)
           throws IOException
Overrides:
write in class OutputStream
Throws:
IOException
See Also:
OutputStream.write(byte[])

write

public void write(int b)
           throws IOException
Specified by:
write in class OutputStream
Throws:
IOException
See Also:
OutputStream.write(int)

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d