public class OutputStreamDecorator extends OutputStream
OutputStream
. Alternative to
FilterOutputStream
that calls the same methods on the decoratee that
were actually called.Constructor and Description |
---|
OutputStreamDecorator(OutputStream out)
Creates a decorator for an output stream
|
public OutputStreamDecorator(OutputStream out)
out
- the output streampublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
OutputStream.close()
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
OutputStream.flush()
public String toString()
toString
in class Object
Object.toString()
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
OutputStream.write(byte[], int, int)
public void write(byte[] b) throws IOException
write
in class OutputStream
IOException
OutputStream.write(byte[])
public void write(int b) throws IOException
write
in class OutputStream
IOException
OutputStream.write(int)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a