org.apache.commons.io.output
Class ProxyOutputStream
FilterOutputStreamorg.apache.commons.io.output.ProxyOutputStream
public class ProxyOutputStream
extends FilterOutputStream
A Proxy stream which acts as expected, that is it passes the method
calls on to the proxied stream and doesn't change which methods are
being called. It is an alternative base class to FilterOutputStream
to increase reusability.
private OutputStream | proxy
|
proxy
private OutputStream proxy
ProxyOutputStream
public ProxyOutputStream(OutputStream proxy)
Constructs a new ProxyOutputStream.
proxy - OutputStream to delegate to
close
public void close()
throws IOExceptionjava.io.OutputStream.close()
flush
public void flush()
throws IOExceptionjava.io.OutputStream.flush()
write
public void write(byte[] bts)
throws IOExceptionjava.io.OutputStream.write(byte[])
write
public void write(byte[] bts,
int st,
int end)
throws IOExceptionjava.io.OutputStream.write(byte[], int, int)
write
public void write(int idx)
throws IOExceptionjava.io.OutputStream.write(int)