org.apache.commons.io.output
Class ProxyWriter
FilterWriter
org.apache.commons.io.output.ProxyWriter
public class ProxyWriter
extends FilterWriter
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 FilterWriter
to increase reusability, because FilterWriter changes the
methods being called, such as write(char[]) to write(char[], int, int)
and write(String) to write(String, int, int).
$Id: ProxyWriter.java 155419 2005-02-26 13:02:41Z dirkv $- Henri Yandell
- Stephen Colebourne
ProxyWriter(Writer proxy) - Constructs a new ProxyWriter.
|
ProxyWriter
public ProxyWriter(Writer proxy)
Constructs a new ProxyWriter.
proxy
- the Writer to delegate to
close
public void close()
throws IOException
flush
public void flush()
throws IOException
write
public void write(String str)
throws IOException
java.io.Writer.write(String)
write
public void write(String str,
int st,
int end)
throws IOException
java.io.Writer.write(String, int, int)
write
public void write(char[] chr)
throws IOException
java.io.Writer.write(char[])
write
public void write(char[] chr,
int st,
int end)
throws IOException
java.io.Writer.write(char[], int, int)
write
public void write(int idx)
throws IOException
java.io.Writer.write(int)