org.apache.commons.io.output
Class ProxyWriter
java.lang.Object
   java.io.Writer
java.io.Writer
       java.io.FilterWriter
java.io.FilterWriter
           org.apache.commons.io.output.ProxyWriter
org.apache.commons.io.output.ProxyWriter
- All Implemented Interfaces: 
- Closeable, Flushable, Appendable
- 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).
- Version:
- $Id: ProxyWriter.java 471628 2006-11-06 04:06:45Z bayard $
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ProxyWriter
public ProxyWriter(Writer proxy)
- Constructs a new ProxyWriter.
 
- Parameters:
- proxy- the Writer to delegate to
 
write
public void write(int idx)
           throws IOException
- 
- Overrides:
- writein class- FilterWriter
 
- 
- Throws:
- IOException
- See Also:
- Writer.write(int)
 
write
public void write(char[] chr)
           throws IOException
- 
- Overrides:
- writein class- Writer
 
- 
- Throws:
- IOException
- See Also:
- Writer.write(char[])
 
write
public void write(char[] chr,
                  int st,
                  int end)
           throws IOException
- 
- Overrides:
- writein class- FilterWriter
 
- 
- Throws:
- IOException
- See Also:
- Writer.write(char[], int, int)
 
write
public void write(String str)
           throws IOException
- 
- Overrides:
- writein class- Writer
 
- 
- Throws:
- IOException
- See Also:
- Writer.write(String)
 
write
public void write(String str,
                  int st,
                  int end)
           throws IOException
- 
- Overrides:
- writein class- FilterWriter
 
- 
- Throws:
- IOException
- See Also:
- Writer.write(String, int, int)
 
flush
public void flush()
           throws IOException
- 
- Specified by:
- flushin interface- Flushable
- Overrides:
- flushin class- FilterWriter
 
- 
- Throws:
- IOException
- See Also:
- Writer.flush()
 
close
public void close()
           throws IOException
- 
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- FilterWriter
 
- 
- Throws:
- IOException
- See Also:
- Writer.close()
 
Copyright © 2002-2007 The Apache Software Foundation. All Rights Reserved.