org.apache.commons.io.output
Class ProxyOutputStream
FilterOutputStream
org.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.
$Id: ProxyOutputStream.java 471628 2006-11-06 04:06:45Z bayard $
ProxyOutputStream
public ProxyOutputStream(OutputStream proxy)
Constructs a new ProxyOutputStream.
proxy
- the OutputStream to delegate to
close
public void close()
throws IOException
java.io.OutputStream.close()
flush
public void flush()
throws IOException
java.io.OutputStream.flush()
write
public void write(byte[] bts)
throws IOException
java.io.OutputStream.write(byte[])
write
public void write(byte[] bts,
int st,
int end)
throws IOException
java.io.OutputStream.write(byte[], int, int)
write
public void write(int idx)
throws IOException
java.io.OutputStream.write(int)