|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.Writer
java.io.FilterWriter
org.apache.commons.io.output.ProxyWriter
public class ProxyWriter
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).
| Field Summary |
|---|
| Fields inherited from class java.io.FilterWriter |
|---|
out |
| Fields inherited from class java.io.Writer |
|---|
lock |
| Constructor Summary | |
|---|---|
ProxyWriter(Writer proxy)
Constructs a new ProxyWriter. |
|
| Method Summary | |
|---|---|
void |
close()
Invokes the delegate's close() method. |
void |
flush()
Invokes the delegate's flush() method. |
void |
write(char[] chr)
Invokes the delegate's write(char[]) method. |
void |
write(char[] chr,
int st,
int end)
Invokes the delegate's write(char[], int, int) method. |
void |
write(int idx)
Invokes the delegate's write(int) method. |
void |
write(String str)
Invokes the delegate's write(String) method. |
void |
write(String str,
int st,
int end)
Invokes the delegate's write(String) method. |
| Methods inherited from class java.io.Writer |
|---|
append, append, append, append, append, append |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProxyWriter(Writer proxy)
proxy - the Writer to delegate to| Method Detail |
|---|
public void write(int idx)
throws IOException
write(int) method.
write in class FilterWriteridx - the character to write
IOException - if an I/O error occurs
public void write(char[] chr)
throws IOException
write(char[]) method.
write in class Writerchr - the characters to write
IOException - if an I/O error occurs
public void write(char[] chr,
int st,
int end)
throws IOException
write(char[], int, int) method.
write in class FilterWriterchr - the characters to writest - The start offsetend - The number of characters to write
IOException - if an I/O error occurs
public void write(String str)
throws IOException
write(String) method.
write in class Writerstr - the string to write
IOException - if an I/O error occurs
public void write(String str,
int st,
int end)
throws IOException
write(String) method.
write in class FilterWriterstr - the string to writest - The start offsetend - The number of characters to write
IOException - if an I/O error occurs
public void flush()
throws IOException
flush() method.
flush in interface Flushableflush in class FilterWriterIOException - if an I/O error occurs
public void close()
throws IOException
close() method.
close in interface Closeableclose in class FilterWriterIOException - if an I/O error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||