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.
$Id: ProxyOutputStream.java 610010 2008-01-08 14:50:59Z niallp $
void | close()- Invokes the delegate's
close() method.
|
void | flush()- Invokes the delegate's
flush() method.
|
void | write(byte[] bts)- Invokes the delegate's
write(byte[]) method.
|
void | write(byte[] bts, int st, int end)- Invokes the delegate's
write(byte[]) method.
|
void | write(int idx)- Invokes the delegate's
write(int) method.
|
ProxyOutputStream
public ProxyOutputStream(OutputStream proxy)
Constructs a new ProxyOutputStream.
proxy - the OutputStream to delegate to
close
public void close()
throws IOException Invokes the delegate's close() method.
flush
public void flush()
throws IOException Invokes the delegate's flush() method.
write
public void write(byte[] bts)
throws IOException Invokes the delegate's write(byte[]) method.
write
public void write(byte[] bts,
int st,
int end)
throws IOException Invokes the delegate's write(byte[]) method.
bts - the bytes to writest - The start offsetend - The number of bytes to write
write
public void write(int idx)
throws IOException Invokes the delegate's write(int) method.
Copyright (c) 2002-2010 Apache Software Foundation