eu.esdihumboldt.hale.common.core.io.util
Class OutputStreamDecorator
java.lang.Object
java.io.OutputStream
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
OutputStreamDecorator
public OutputStreamDecorator(OutputStream out)
- Creates a decorator for an output stream
- Parameters:
out
- the output stream
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)
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d